public class Foo {
static final int A = 0;
public static final int B = 0;
private static final int C = 0;
int d = 0;
protected int e = 0;
public int f = 0;
private int g = 0;
public void foo(int h){
int i = 0;
}
}
IN OTHER PACKAE ONLY ACCESS:
public void foo(int j) {
System.out.println(B);
System.out.println(e);
System.out.println(f);
System.out.println(j);
}
I tested this code:
public class Bar extends com.foo.Foo{
@Override
public void foo(int j){
System.out.println(super.B+" "+new Bar().e+" "+new Bar().f+ " "+ j);
}
public static void main(String[] args) {
Bar bar = new Bar();
bar.foo(5);
}}
The output is: 0 0 0 5, so the correct answer: A B D H (with identifiers: e, f, j, B)
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
c47d39c
6 months, 2 weeks agod7bb0b2
1 year agoRoxyFoxy
1 year, 3 months agoStavok
1 year, 6 months agoaruni_mishra
1 year, 7 months agoMukes877
1 year, 7 months agoSuperDabicho
1 year, 9 months agopikosss
1 year, 10 months agopikosss
1 year, 10 months agopikosss
1 year, 10 months agopikosss
1 year, 10 months ago