0 votes
in JAVA by
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
asked Oct 20, 2020 in JAVA by sharadyadav1986
+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
...