in JAVA by
Q:
Why java uses the concept of the string literal?

1 Answer

0 votes
by

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

Related questions

0 votes
0 votes
0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986
0 votes
asked Sep 3, 2019 in JAVA by Robin
...