• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

immutable

Could you explain Why java string is immutable
0
Manikandan Thiagarajan
Asked:
Manikandan Thiagarajan
  • 2
1 Solution
 
objectsCommented:
because you can't change its value.
0
 
Manikandan ThiagarajanSenior consultantAuthor Commented:
String  s ="mani"+"Kandan"

what is the output for this
0
 
objectsCommented:
s would be equal to "maniKandan"
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now