Epsilon interview question

Difference between declaring string variables in java String str = “Rama” String str = new String(“Rama”)

Interview Answer

Anonymous

6 Nov 2019

Answered based on memory allocation, but expectation was different.