Sail E0 Webinar
Question
Which of these operator is used to generate an instance of an exception than can be thrown by using throw?
Options:
A .  new
B .  malloc
C .  alloc
D .  thrown
Answer: Option A


new is used to create instance of an exception. All of java's built in run-time exceptions have two constructors : one with no parameters and one that takes a string parameter.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers