M
Moon2
Can anyone please tell me why the following doesnt create a runtime error.
Object s = null;
System.out.println(s);
The output is null. Why doesnt it call the Object's tostring method and
throw a null pointer exception. Any comments will be appreciated.
Moon2
Object s = null;
System.out.println(s);
The output is null. Why doesnt it call the Object's tostring method and
throw a null pointer exception. Any comments will be appreciated.
Moon2