Data Type Java Tutorial

The literal null is an object reference value that does not refer to anything.

public class MainClass {
  public static void main(String[] arg) {
    String s = null;
    
    System.out.println(s);
  }
}