Home » JAVA Programming » Exceptions » Question
  1. Which of the following operators is used to generate instance of an exception which can be thrown using throw?
    1. malloc
    2. thrown
    3. new
    4. alloc
    5. None of these
Correct Option: C

new operator is used to create instance of an exception. Exceptions may have parameter as a String or have no parameter.



Your comments will be displayed only after manual approval.