1 2 3 4 5 6 7 8 9 10 11
package test2; class PrivateMethod2 { private int f() { return 0; } int g() { return f(); } } public class PrivateMethod { public int i; }