Java inner class and static nested class
2589
12-May-2015
What is the main difference between a inner class and a static nested class in Java? Does design /implementation play a role in choosing any of these?
Anonymous User
12-May-2015class OuterClass {...
class InnerClass {
...
}
}
class A {int t() { return 1; }
static A a = new A() { int t() { return 2; } };
}