WHY JAVA USES THE CONCEPT OF STRING LITERAL?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java  String 
 722  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Why java uses the concept of string literal?

    o make Java more memory efficient (because no new objects are created if it exists already in string constant pool).

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!