wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Immutable object.
 
Similar Threads
equals() and ==
immutable
objects
Immutable classes
How is this possible if Strings are immutable?