This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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