File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: Immutable object.
 
Similar Threads
objects
immutable
Immutable classes
How is this possible if Strings are immutable?
equals() and ==