MCQ
By creating which of the following we can create user-defined exceptions?
  • By creating a subclass of exception class.
  • B
    By creating method of exception class.
  • C
    By creating object of exception class.
  • D
    Not possible

Answer

Correct option: A.
By creating a subclass of exception class.
By creating a subclass of exception class.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free