In fact, at least in java version 1.8.0 System.out.println(null);
Do not print null
. You will receive an error message:
the reference to println is ambiguous, both the println (char []) method in PrintStream and the println (String) method in the PrintStream mapping.
You will need to do the following: System.out.println((String)null);
See coderanch post here . I suppose you could do System.out.println(null+"");
to achieve the same.
sedeh source share