new A().print();
class C { // local class } Object d = new Object() { // anonymous inner class }; System.out.println("Here are an A, a B, a C, and d."); System.out.println(this + " " + new B() + " " + new C() + " " + d); new B().print();