--------------------------------------------
1.
String Str = "A";
String lStr = "A";
The Str n lStr are stored in the same Heap memory?
--------------------------------------------
2.
String Str = "A";
String lStr = new String("A");
The Str n lStr are Different means stored in different locations(Heap),
The new operator do the tricks here?
----------------------------------------------
3.
String Str = new String("A");
String lStr = new String("A");
These two strings are stored in same heap locations?
-------------------------------------------------------
Thanks in Advance.