Which of these operator is used to generate an instance of an exception than can be thrown by using throw?

a) new
b) malloc
c) alloc
d) thrown

1 thought on “Which of these operator is used to generate an instance of an exception than can be thrown by using throw?”

  1. a
    Explanation: new is used to create an 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.

Leave a Comment