List/Grid Core Java Subscribe to the RSS feed of category Core Java

Serialization in java
Java provides mechanism called serialization to persists java objects in a form of ordered or sequence of bytes that includes the object’s data as well as information about the ...

The Big Java News Keeps Coming: Java SE 6 and OpenJDK
I recently posted Recent Java 8 News, summarizing some of the recent developments in Java 8. In less than a week since publishing that post, several more significant Java news stories ...

Template method design pattern in Java
Template method pattern is a behavioral design pattern which provide base method for algorithm,called template method which defers some of its steps to subclasses So algorithm structure ...

Facebook Hacker Cup : Studious Student Problem Solution in Java
This program is a solution to Studious Student problem from Facebook Hacker Cup. The problem can be found here: link. The problem: Studious Student You’ve been given a list of words ...

Hunting down memory leaks: a case study
A week ago I was asked to fix a problematic webapp suffering from memory leaks. How hard can it be, I thought – considering that I have both seen and fixed hundreds of leaks over ...

Recent Java 8 News
Java 8 developments are starting to dominate the news again. Recent posts cover extending Milestone 7 of JDK 8 to ensure its feature complete, the Date/Time API now available in Java ...

My Custom Thread Pool Executor in Java
ThreadPoolExecutor is a feature added by java concurrent api to maintain and reuse threads efficiently , so that our programs don’t have to worry about creating and destroying ...

Difference between Comparator and Comparable in Java
One of the common interview question is ‘What are differences between Comparator and Comparable’. or ‘How will you sort collection of employee objects by its id or ...

Observer design pattern in Java
As the name suggests it is used for observing some objects.Observer watch for any change in state or property of subject.Suppose you are interested in particular object and want to ...

Java – Handmade Classloader Isolation
In a recent project we had a typical libraries conflict problem. One component that we could control wanted a specific version of an Apache Commons library, while another component ...

