Quantcast
Channel: Crunchify
Browsing all 1037 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

What 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Servlet 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

WordPress: 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 Article


Image may be NSFW.
Clik here to view.

SOAP 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 Article


Image may be NSFW.
Clik here to view.

What 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 Article

Image may be NSFW.
Clik here to view.

Java 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Java: 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 Article


Image may be NSFW.
Clik here to view.

Java: 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 Article

Image may be NSFW.
Clik here to view.

WordPress: 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

Java: 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 Article


Image may be NSFW.
Clik here to view.

Want 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 Article

Image may be NSFW.
Clik here to view.

We 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 Article

Image may be NSFW.
Clik here to view.

How 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
Browsing all 1037 articles
Browse latest View live