Computer Science - Object Oriented Programming Using C++ - Discussion
Discussion Forum : Object Oriented Programming Using C++ - Section 1 (Q.No. 2)
2.
A default catch block catches
Discussion:
13 comments Page 1 of 2.
Satya said:
1 decade ago
Please give me detail info this question.
Khine Su said:
1 decade ago
I couldn't exactly understand about it.
Saumiya said:
1 decade ago
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:
1 decade ago
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:
1 decade ago
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:
1 decade ago
I think catch thrown object in catch.
Sowjanya said:
10 years ago
I think it is option 'A' that is all thrown objects.
Rahul Vashisth said:
8 years ago
What is the right answer?
Someone please explain me.
Someone please explain me.
Aakash kr said:
7 years ago
Please give an explanation in detail.
Bobby said:
7 years ago
Please provide the correct and clear explanation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers