Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does String Object are actually of Immutable type ?

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic