Core Java
-
One jar to rule them all
Trip down the memory lane Back in 1998, when I was a C/C++ developer, trying my hands on Java, a…
Read More » -
Iterator Pattern and Java
Hello all, in this post we’ll be checking on the Iterator Pattern. A design pattern that I know many of…
Read More » -
10 XML Interview questions and answers for Java Programmer
XML Interview questions are very popular in various programming job interviews, including Java interviews for web developer. XML is a…
Read More » -
Java Memory Model and optimisation
Overview Many developers of multi-threaded code are familiar with the idea that different threads can have a different view of…
Read More » -
Loan pattern in Java (a.k.a lender lendee pattern)
This post is about implementing loan pattern in Java. Use Case Implement separation between the code that holds resource from…
Read More » -
Fluent Object Creation
Many posts have been written on this subject (overwhelmingly many) but I just wanted to contribute my two-cents and write…
Read More » -
How to shoot yourself in foot with ThreadLocals
It will start nicely. Like most of the stories. You discover a new concept and are amazed by it’s powers.…
Read More » -
Java Thread Pool Example using Executors and ThreadPoolExecutor
A thread pool manages the pool of worker threads, it contains a queue that keeps tasks waiting to get executed.…
Read More » -
IntelliJ IDEA: Generate equals, hashCode and toString with Google Guava
THE PROBLEM In the world of Java, we’re quite often in the need of writing equals, hashCode and toString methods.…
Read More »