Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Read the following statements and arrange them in the correct order.

A. Exception is raised
B. Executes exception
C. Program searches for exception handler
D. Create exception object
E. An error encountered

Choose the correct answer from the options given below:






Solution

When an exception occurs in a program, the sequence is as follows:

  1. E → An error is encountered

  2. D → An exception object is created

  3. A → The exception is raised (thrown)

  4. C → The program searches for an appropriate exception handler

  5. B → If found, the exception handler (catch block) is executed

Hence, the correct order is E → D → A → C → B.



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...