String literal is used to make Java more memory efficient - Core Java

Q.  Which concept is used to make Java more memory efficient (because no new objects are created if it exists already in string constant pool)?
- Published on 13 Jul 15

a. String literal
b. By new keyword
c. Both A & B
d. None of the above

ANSWER: String literal

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)