Practice mode Java

Which statement about an abstract class in Java is correct?

Correct answer A. It cannot be instantiated directly, but it may have constructors

Explanation

Using new on an abstract class is a compile-time error, yet the class may still declare constructors, which subclasses invoke through super. An abstract class is allowed to have no abstract methods at all, and it can hold ordinary fields and methods with any access level. Those freedoms make it different from an interface.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

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

Links and website addresses are not allowed in comments.