Computer Science - Object Oriented Programming Using C++ - Discussion

2. 

A default catch block catches

[A]. all thrown objects
[B]. no thrown objects
[C]. any thrown object that has not been caught by an earlier catch block
[D]. all thrown objects that have been caught by an earlier catch block

Answer: Option C

Explanation:

No answer description available for this question.

Satya said: (May 23, 2011)  
Please give me detail info this question.

Khine Su said: (Oct 8, 2011)  
I couldn't exactly understand about it.

Saumiya said: (May 20, 2012)  
The other thrown objects will be catched by the catch written for corresponding try. Default catch is used to catch the exceptions for which user have not made a guess and applied in try block.

Ashok said: (Apr 17, 2014)  
You're telling is absolutely wrong because according to oop principal catch can catch all the thrown objects thrown by try block whenever user needs understand that particular exception handling we need to specify different kind of exceptions.

Supraja said: (Aug 7, 2014)  
As we know that multiple catches are used with try statement. So if know about the exception then specify it in catch block, otherwise superclass Exception is used to look after all the raised exceptions.

Raksha said: (Apr 12, 2015)  
I think catch thrown object in catch.

Sowjanya said: (Sep 7, 2015)  
I think it is option 'A' that is all thrown objects.

Rahul Vashisth said: (Apr 13, 2017)  
What is the right answer?

Someone please explain me.

Aakash Kr said: (Apr 15, 2018)  
Please give an explanation in detail.

Bobby said: (Apr 18, 2018)  
Please provide the correct and clear explanation.

Akash said: (Jul 7, 2018)  
I think the answer is A.

Sunny said: (Jul 7, 2018)  
Please Tell me the right answer.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.