What is null in Java and some facts about null

What is null in Java

null is a reference that does NOT point an object.

Facts about null in Java

It is really handy to know some facts about null. To speed up the development time it is required know these facts about null in Java.

  • For all reference types, the default value is null.
  • null is Case sensitive
  • null does not have any type but null can be assigned to any reference type
  • When a class object is assigned to null, only the static method can be called using that
  • null==null // true but null != null // false

Video about null in Java