I know that null is not a data type.
But null can be only assigned for any type of Object and String.
null
Object
String
Example:
Object o = null; // it tells that null is an object String b = null; // it tells that null is of string type
Neither of those comments is correct. All that's happening here is that references are being set to null.