arekolek
11/08/2018, 3:39 PMkartikpatodi
11/08/2018, 7:17 PMnull and is treated as "null" if we apply String operations other than condition checking
For eg in Java:
String s1 = null;
String s2 = "test";
String s3 = s1 + s2;
System.out.println(s3);
The above snippet prints nulltest.kartikpatodi
11/08/2018, 7:20 PMkartikpatodi
11/08/2018, 7:23 PMString then guess it is returning "null" but at time of condition checking it is unboxed sort of as a null.kartikpatodi
11/08/2018, 7:32 PM"null"
https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.11