JUnit is most popular framework for unit testing in Java and following some unit testing best practices you can test your Java code more effectively. http://javarevisited.blogspot.com/2012/08/best-practices-to-write-junit-test.html
Java 5 adds two important methods to format String in Java. System.out.printf() and String.format() method can be used to format any String by providi http://javarevisited.blogspot.com/2012/08/how-to-format-string-in-java-printf.html
In order to get value of Environment variables in Java, you can use System.getEnv() method. By using this method you can either get value of single sp http://javarevisited.blogspot.com/2012/08/how-to-get-environment-variables-in.html
Reading String from InputStream is a common Java programming task and there are several ways you can read String from InputStream e.g. using Scanner, http://javarevisited.blogspot.com/2012/08/convert-inputstream-to-string-java-example-tutor...
Read only collection means any collection which once created can not be modified i.e. you can not add new elements, you can not remove elements and ev http://javarevisited.blogspot.com/2012/07/create-read-only-list-map-set-example-java.html
CountDownLatch in Java is similar to CyclicBarrier and can be used in place of CyclicBarrier with only difference is that you can reuse CyclicBarrier http://javarevisited.blogspot.com/2012/07/countdownlatch-example-in-java.html
CyclicBarrier is a concurrency utility added in Java 5. One example of How to use CyclicBarrier in Java along with What is difference between CyclicB http://javarevisited.blogspot.com/2012/07/cyclicbarrier-example-java-5-concurrency-tutoria...
Classloading and Initialization of class variables, member variable, super class and sub class variables are one of the most important concept to unde http://javarevisited.blogspot.com/2012/07/when-class-loading-initialization-java-example.html
BufferedReader in Java can be used to read any file line by line, it provides method like readLine() which returns line by line until end of file reac http://javarevisited.blogspot.com/2012/07/read-file-line-by-line-java-example-scanner.html
Both get and load method are used to retrieve object in hibernate but there are subtle difference between them which can affect performance if used at http://javarevisited.blogspot.com/2012/07/hibernate-get-and-load-difference-interview-ques...
Autoboxing is introduced in JDK 5 and allows automatic conversion of primitive to Object type. There are subtle details about auto boxing which is req http://javarevisited.blogspot.sg/2012/07/auto-boxing-and-unboxing-in-java-be.html
This tutorial explains about what is local and instance variables and the difference between the instance variable and local variable http://www.techlabs4u.com/2012/10/instance-variable-vs-local-variable-in.html
From Java 5 onwards there is a new way to implement Singleton design pattern, by using Enum. Enum has some distinct benefits in terms of thread-safety http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html
Builder pattern in Java is used to create objects with lots of mandatory and option value. Since after 4 or 5 arguments constructor started getting ug http://javarevisited.blogspot.com/2012/06/builder-design-pattern-in-java-example.html
-XX:UseCompressedOops is a JVM command line option which is provided in 64 bit hotspot JVM. Since size of OOPS is larger in 64 bit JVM which reduces C http://javarevisited.blogspot.com/2012/06/what-is-xxusecompressedoops-in-64-bit.html
Junit is best framework for writing unit tests and with introduction of annotations on JUnit 4 its become even more sophisticated and easier but In or http://javarevisited.blogspot.in/2012/06/junit4-annotations-test-examples-and.html
Step by Step guide on how to create JDBC connection pool in Spring framework. Spring allows you to create JDBC pool directly or access it using JNDI. http://javarevisited.blogspot.com/2012/06/jdbc-database-connection-pool-in-spring.html
Generics is a great addition in Java 5 , though just a syntactic sugar, it provides great value, but no doubt its complex. especially writing parametr http://javarevisited.blogspot.sg/2012/06/10-interview-questions-on-java-generics.html
Java.lang.NullPointerException comes when we try to access any field or method on Object which is null. Its come mainly due to programming mistake and http://javarevisited.blogspot.sg/2012/06/common-cause-of-javalangnullpointerexce.html