Which two statements correctly describe capabilities of interfaces and abstract classes?

Which two statements correctly describe capabilities of interfaces and abstract classes? (Choose two.)
A. Interfaces cannot have protected methods but abstract classes can.
B. Both interfaces and abstract classes can have final methods.
C. Interfaces cannot have instance fields but abstract classes can.
D. Interfaces cannot have static methods but abstract classes can.
E. Interfaces cannot have methods with bodies but abstract classes can.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which two statements correctly describe capabilities of interfaces and abstract classes?

  1. I think aside form A and C, B is also correct. Starting from Java 9, Interface can have private method, which could be marked as final.
    The code below compiles correctly in Java11 for me.
    interface MyInterface {
    private final void aPrivateMethod() {}
    }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.