In this Playlist on 1000 Java Interview Questions for freshers to experienced.
Today we will cover about String literal vs new String object in java. String objects are usally stored in heap memory where as string literals are string pool. Hence String Literals are more recommend as its optmized memory leading to better performance over string object.
#programming ,#interview ,#javacodinginterviewquestions