• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does String Object are actually of Immutable type ?  RSS feed

 
Sumeet Raheja
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I heard that String Object can be changed without creating the new String Object , by using Reflection , then how we can say Strings are immutable
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give us an example of the code that does this, please.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!