Monthly Archives: May 2012

Reflection in Java

Class to be Dynamically loaded and called Reflection Example

Posted in Core JAVA, SCJP | Leave a comment

Immutable Objects in java

Immutable objects are simply objects whose state (the object’s data) cannot change after construction. Examples of immutable objects from the JDK include String and Integer. Immutable objects greatly simplify your program, since they : are simple to construct, test, and … Continue reading

Posted in Core JAVA, SCJP | Leave a comment

Cloning objects in java

Shallow Copy Generally clone method of an object, creates a new instance of the same class and copies all the fields to the new instance and returns it. This is nothing but shallow copy. Object class provides a clone method … Continue reading

Posted in Core JAVA, SCJP | Leave a comment