• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

immutable objects????

 
raymond yadao
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aside from String, what else are immutable objects in java???

thanks!!!
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all the wrapper classes like Double, Integer, Character etc....
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a quick summary of mutable primitive types and their immutable counterpart (taken from Mindprod.com:

[ February 28, 2002: Message edited by: Valentin Crettaz ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic