public static void main(String[] args) { String s = null; Integer i = null; Object o = null; System.out.println(s == o); //true System.out.println(i == o); //true System.out.println(s instanceof String); // false}