Object e = new Rectangle();Class c = e.getClass();System.out.println(c.getName()); // prints java.awt.Rectangle