Java OCA OCP Practice Question 1634

Question

Which statements about the enum type are true?

Select the three correct answers.

  • (a) An enum type is a subclass of the abstract class java.lang.Enum, hence it is Comparable and Serializable.
  • (b) An enum type can implement interfaces.
  • (c) We can instantiate an enum type using the new operator.
  • (d) An enum type can define constructors.
  • (e) We can explicitly use the extend clause to extend an enum type.
  • (f) Enum types do not inherit members from the Object class.


(a), (b), and (d)

Note

We cannot instantiate an enum type using the new operator.

An enum type is implicitly final.

Enum types inherit members from the Object class, as any other reference type.




PreviousNext

Related