// here "object" is a reference if (object == null) { System.out.println("object is null"); }