1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package test2; public class Nested3 { private int i = 0; private int geti() { return i; } Nested3(int j) { i = 1; } private Nested3() { i = 2; } private Nested3(String s) { i = 3; } public static class Inner { public int g() { return 1; } } }