Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

immutable class?

 
Kevin Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone please give me an example of an immutable class from the J2SE 1.4.2 sdk?

Thanks, Kp
 
Sean Magee
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String j = " I am immutable";

All String are immutable, besides that im not sure.
[ March 06, 2005: Message edited by: Sean Magee ]
 
Kevin Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, i kick myself for not thinking of that example.

-Kp
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What method in Integer do you use to change its value? And Double?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic