search
Log In
0 votes
194 views
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
in Programming 194 views

2 Answers

1 vote
 
Best answer
Is answer  c

selected by
0
Please explain.
0
But if there is only default catch block then it will catch all the thrown objects.
0
No I don't think so. The control goes to the catch block when first Exception is thrown. Subsequent throw lines will not be executed.
1
Got it

Thanks
0
Thank you for explaining.
0 votes
Option (A): All thrown objects

Related questions

4 votes
1 answer
1
3k views
Which one of the following is correct, when a class grants friend status to another class? The member functions of the class generating friendship can access teh members of the friend class All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship Class friendship is reciprocal to each other There is no such concept
asked Aug 14, 2016 in Object Oriented Programming jothee 3k views
1 vote
0 answers
2
113 views
Please tell why the answer is C, why not A or B?
asked Nov 12, 2018 in Compiler Design Balaji Jegan 113 views
0 votes
1 answer
3
144 views asked Jun 22, 2016 in Programming shaff 144 views
2 votes
0 answers
4
347 views
Which of the following concepts of OOPS means exposing only necessary information to client? A. Encapsulation B. Abstraction C. Data hiding D. Data binding Answer is C, Why?
asked Jan 11, 2018 in Object Oriented Programming Manu Madhavan 347 views
...