aspose file tools*
The moose likes Java in General and the fly likes Immutable object. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Immutable object." Watch "Immutable object." New topic
Author

Immutable object.

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hello,

How does one make an object immutable? I was asked this question during an interview.

Thanks,
Raj.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

http://www.javaranch.com/journal/2003/04/immutable.htm
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Immutable object.