• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About String

 
Aftab Ahmed
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi frnds,
in some book i read that but dont understand this
(when u create String object it cant change value)
can anybody tell me about this.
thanx
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aftab, the book is correct. String objects are immutable. i.e. thay can not me changed or modified. Anything that seems like it is changing the string such as concat(), +, etc. is actually creating a new string object.
Bosun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic