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)
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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
12 months agod7bb0b2
1 year, 6 months agoRoxyFoxy
1 year, 9 months agoStavok
2 years agoaruni_mishra
2 years agoMukes877
2 years, 1 month agoSuperDabicho
2 years, 2 months agopikosss
2 years, 3 months agopikosss
2 years, 3 months agopikosss
2 years, 4 months agopikosss
2 years, 3 months ago