What is the difference between null and the \"\" (empty string)?
null
\"\"
I have written some simple code:
String a = \"\"; String b
here a is an Object but b(null) is not an Object it is a null reference
a is an Object
b(null)
System.out.println(a instanceof Object); // true System.out.println(b instanceof Object); // false
here is my similar answer