K

Kirti • 10.45K Points
Tutor II

Q. What is the output of below code snippet?

Code:
  class A
 {
   }
   enum Enums extends A
 {
     ABC, BCD, CDE, DEF;
 }
  • (A) Runtime Error
  • (B) Compilation Error
  • (C) It runs successfully
  • (D) EnumNotDefined Exception
  • Correct Answer - Option(B)
  • Views: 148
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics