This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to make a user-defined class as immutable ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to make a user-defined class as immutable ?" Watch "how to make a user-defined class as immutable ?" New topic
Author

how to make a user-defined class as immutable ?

Praveen Vallabhaneni
Greenhorn

Joined: Aug 25, 2006
Posts: 3
how to make a user-defined class as immutable is it possible to do like that if so please explain me with example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41024
    
  43
JavaRanchs very own David O'Meara has written an article on this subject: Mutable and Immutable Objects


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to Java In General (Intermediate)


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
wood burning stoves
 
subject: how to make a user-defined class as immutable ?
 
Similar Threads
Java
immutable
How to make a class immutable??????????
class Immutable
imutable class