InterviewSolution
Saved Bookmarks
| 1. |
What Is The Advantage Of Using A String Literal In Java? |
|
Answer» Using a string literal to create STRINGS makes JAVA memory more efficient as no NEW objects are created if they already EXIST in the string constant POOL. Using a string literal to create strings makes java memory more efficient as no new objects are created if they already exist in the string constant pool. |
|