Why java uses the concept of string literal?
Page 1 of 1
Why java uses the concept of string literal?
To make Java more memory efficient (because no new objects are created if it exists already in string constant pool).
Similar topics
» Why string objects are immutable in java?
» How many ways we can create the string object?
» What is the meaning of immutable in terms of String?
» What is the basic difference between string and stringbuffer object?
» How can we create immutable class in java ?
» How many ways we can create the string object?
» What is the meaning of immutable in terms of String?
» What is the basic difference between string and stringbuffer object?
» How can we create immutable class in java ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum