Q. What is the output of below code snippet?

Code:
  enum Levels
  {
     private TOP,
       public MEDIUM,
       protected BOTTOM;
 }
  • (A) Runtime Error
  • (B) EnumNotDefined Exception
  • (C) It runs successfully
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
232
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kirti
Publisher
πŸ“ˆ
98%
Success Rate