WHY JAVA USES THE CONCEPT OF STRING LITERAL?

Mayank Tripathi

Total Post:807

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

    Post:807

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

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

      Modified On Mar-28-2018 12:47:24 AM

Answer

NEWSLETTER

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