Please why "a" is printed instead of the address of String object?
Example code:
class Source{
public static void main(String[] args) {
Source S1= new Source();
String a1= new String("a");
System.out.println(S1);
System.out.println(a1);
}
}
Result:
Source@4dd8dc3
a