PixelKit Freebie – Flat Jewels Icon Set for Crunchify Readers
We are more than happy to offer our 1st Freebie on Crunchify. Thanks to PixelKit. PixelKit creates outstanding Web UI Kits for designers and web developers. We are offering Flat Jewels Icon Set Freebie...
View ArticleWhat are all the Different Ways to Create an Object in Java??
As you know, in Java, a class provides the blueprint for objects; you create an object from a class. There are four different ways to create objects in java: Method 1. Using new keyword. This is the...
View ArticleHow to avoid Exception in thread main – java.lang.CloneNotSupportedException
public interface Cloneable I faced this exception in my previously explained post: http://crunchify.com/what-are-all-the-different-ways-to-create-an-object-in-java/ A class implements the Cloneable...
View ArticleHow to get Server IP Address and Hostname in Java
In Java, you can use InetAddress.getLocalHost() to get the Ip Address of the current Server running the Java app and InetAddress.getHostName() to get Hostname of the current Server name.package...
View ArticleHow to Serialize Deserialize List of Objects in Java? Java Serialization Example
Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that includes the object’s data as well as information about the object’s type and the...
View ArticleServlet Tutorial: Getting Starting with JSP – Servlet Example
Here is a simple JSP – Servlet example with step-by-step instructions. I’ll demonstrate how to retrieve request parameters in JSP – Servlet example. Here are the steps we are going to perform: Open...
View ArticleHow to Calculate the Difference Between Two Java Date Instances
There are times when we need to calculate the difference between two dates in Java. Below is a simple Java Program which uses SimpleDateFormat and DecimalFormat Java APIs to perform this...
View ArticleWordPress: How to Track Post Views without a Plugin using Post Meta
If you want to keep real-time track of your WordPress post views / hit by user then you can use this code. Below code snippet/plugin will gives stats for each post. Step1: Put this into functions.php...
View ArticleSOAP vs REST: Simple Object Access Protocol Vs. REpresentational State Transfer
This article is to compare REST vs SOAP. There is huge difference between REST and SOAP. SOAP (Simple Object Access Protocol): SOAP is a method of transferring messages, or small amounts of...
View ArticleWhat is a Difference Between throw Vs. throws in Java
One declares it, and the other one does it There are five keywords related to Exception handling in Java e.g. try, catch, finally, throw and throws. Apart from difference between final, finally and...
View ArticleJava Method Overriding Examples and Concepts: Overriding Rules
Last week I wrote Java Method Hiding and Overriding: Override Static Method in Java here. But I realized, it’s worth sharing some more information on Java Method Overriding. Rules for method...
View ArticleHow to Load Twitter Follow Button Script Asynchronously
I’m sure you must be using default Twitter Follow Button Script in your WordPress site/blog. Have you noticed some performance issue with that? Well, The default Twitter Follow code, the script loads...
View ArticleJava: How to Copy Properties from One Bean to Another
Most Java developers are used to creating Java classes that conform to the JavaBeans naming patterns for property getters and setters. It is natural to then access these methods directly, using calls...
View ArticleJava: How to Encode or Decode URL String Or Form Parameter
In Java Examples, when using the GET method, parameter names and their values get submitted on the URL string after a question mark. Different parameter name/value pairs are separated by ampersands....
View ArticleWordPress: How to Add Custom Fields to RSS Feed
Adding custom Fields to any WordPress Post is very powerful function, these fields allow you to store extra data about the post without it having to go into the content. Sometime you have to put below...
View ArticleHow to Install WordPress Locally on Mac OS X using MAMP?
Today I installed WordPress locally on my Mac and I used MAMP to achieve my goal. With MAMP it’s very easy to run WordPress on Mac within 10 mins. Let’s get started. You just have to follow below...
View ArticleJava: How to Get Random Key-Value Element From HashMap
Is there a way to get the value of a HashMap randomly in Java? Of Course, below is a simple Java Code which represents the same. Also, at the end of program there is a bonus code to Shuffle complete...
View ArticleWant to Give Your Very Best at Your Exams? Follow these Tricks
This is a guest post written by: Davis Miller Students hate exams and that’s not much of a secret. It we had the power to change the learning system, we would definitely take out is exams and replace...
View ArticleWe have 3 Yearly Subscriptions (worth $39 each) to PixelKit to Giveaway
Our friends from PixelKit are offering 3 free subscriptions to their website through this awesome giveaway. If you’re a web designer, this is the place for you: they have some of the best UI kits on...
View ArticleHow to Create a Simple In Memory Cache in Java (Lightweight Cache)
High performance scalable web applications often use a distributed in-memory data cache in front of or in place of robust persistent storage for some tasks. In Java Applications it is very common to...
View Article