Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. What is the output of...
What is the output of below code snippet?

enum Levels 
{
    private TOP,
 
    public MEDIUM,
 
    protected BOTTOM;
}

Runtime Error

EnumNotDefined Exception

It runs successfully

Compilation Error

Answer: D . Compilation Error
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

error: You are not allowed to do so.....
0Shares
0
Scroll to Top