Java OCA OCP Practice Question 752

Question

Which of the following can be thrown using a throw statement?

Select 3 options

  • A. Event
  • B. Object
  • C. Throwable
  • D. Exception
  • E. RuntimeException


Correct Options are  : C D E

Note

You can only throw a Throwable using a throws clause.

Exception and Error are two main subclasses of Throwable.




PreviousNext

Related