Mastering Java: The Ultimate 2026 All-In-One Quiz to Excel in 'Thinking in Java

Question: 1 / 510

What keyword is used to define a completely abstract class in Java?

abstract

interface

An abstract class in Java is a class that cannot be instantiated and is used mainly for inheritance. It is used to provide a template for its subclasses to implement or override its abstract methods. Option A, "abstract" is a keyword that is used to define both an abstract class and abstract methods within a class. Option C, "virtual" is not a keyword in Java and is used in some other programming languages. Option D, "AbstractClass" is not a keyword in Java and does not follow the naming convention for classes. Therefore, B is the only correct option.

Get further explanation with Examzify DeepDiveBeta

virtual

AbstractClass

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy