Oracle
1Z0-819 · Question #19
1Z0-819 Question #19: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-819 to reveal the answer and full explanation for question #19. The question stem and answer options stay visible for context.
Question
Given:
public interface A {
a();
}
public interface B extends A {
b();
}
public interface C extends A {
public Path c();
}
public interface D extends B, C {
}
Why does D cause a compilation error?Options
- AD inherits a() only from C.
- BD inherits a() from B and C but the return types are incompatible.
- CD inherits c() only from interface.
- DD does not define any method.
Unlock 1Z0-819 to see the answer
You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.