Return to site

JAVA CERTIFICATION QUESTION: Working with abstract classes and default methods in Java

=>What happens when a default method is hidden and inaccessible?

· java

Given the following classes and an interface:

What is the result? Choose one.

A. The Bird class fails to compile.
B. The Chicken class fails to compile.
C. Default fly is printed.
D. Cannot fly is printed.

 

 

 

 

 

 

 

 

·ꓷ sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK