I was trying out string concatenation and the '+' operator on a string and encountered the following-
String xyz = "Hello" + null;
System.out.println("xyz= " +xyz);
String abc= "Hello".concat(null);
System.out.println("abc= " +abc); 
The output for the first one was : Hellonull 
The output for the second one was a Null Pointer exception
I don't understand why there were two different outputs.
 
     
     
     
     
     
     
    