Java OCA OCP Practice Question 73

Question

Which of the following statements are true?

  • A. An abstract class may be instantiated.
  • B. An abstract class must contain at least one abstract method.
  • C. An abstract class must contain at least one abstract data field.
  • D. An abstract class must be overridden.
  • E. An abstract class must declare that it implements an interface.
  • F. None of the above.


F.

Note

A is false because the compiler forbids construction of an abstract class.

B is false because abstract classes need not contain any abstract methods.

C is false because there is no such thing as an abstract data field.

D is false because, when you really think about it, it doesn't make any sense.

E is false because there is no compiler requirement that an abstract class must declare that it implements any interface.




PreviousNext

Related