Hi all, My understanding of java String got wrong when i see this code. I am not sure how this is happening. Can anyone explain why is so?.
public class NewClass {
public static void main(String[] args) {
String str=null;
System.out.println(str+"Added");
}
}
output:nullAdded