Home / Report Question

Q. What will happen if you try to instantiate an enum using `new` keyword?
  • A. It creates a new enum instance
  • B. It results in a compile-time error
  • C. It throws a runtime exception
  • D. It works only inside the enum class