The Artima Developer Community
Sponsored Link

Java Answers Forum
Immutable Class

1 reply on 1 page. Most recent reply: Jan 12, 2005 10:52 PM by Yogesh

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
venkatachalam

Posts: 1
Nickname: venkat1234
Registered: Jan, 2005

Immutable Class Posted: Jan 10, 2005 4:21 AM
Reply to this message Reply
Advertisement
how to create the class which is immutable like String class?


Yogesh

Posts: 19
Nickname: kyogesh
Registered: Sep, 2004

Re: Immutable Class Posted: Jan 12, 2005 10:52 PM
Reply to this message Reply
hi there

there is no such keyword in java that makes a class immutable. it is totally dependent on skills of programmer. programmer has to create a class in such a way that it seems immutable (unchangeable). check this link http://www.churchillobjects.com/c/11027.html
this link provides all directions that are related to creating immutable class.

all the best
bye

Flat View: This topic has 1 reply on 1 page
Topic: Need help in killing thread Previous Topic   Next Topic Topic: how to get the icon associated with a file's extension

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use