Java Interview questions

Friday, 20 April 2007, 12:41 | Category : Interview questions, Java, Technology
Tags :

Q. How to create Immutable class? Immutable objects are simply objects whose state (the object’s data) does not change after construction. Always construct an object completely, instead of using a no-argument constructor combined with subsequent calls to setXXX methods. Do not provide any methods which can change the state of the object in any way […]