0 votes 0 votes 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 Programming in C oops class try-catch non-gate + – logan1x asked May 19, 2019 logan1x 650 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes Is answer c Kaluti answered May 21, 2019 selected Nov 3, 2019 by logan1x Kaluti comment Share Follow See all 5 Comments See all 5 5 Comments reply logan1x commented May 22, 2019 reply Follow Share Please explain. 0 votes 0 votes Shagun Singh commented Oct 31, 2019 reply Follow Share But if there is only default catch block then it will catch all the thrown objects. 0 votes 0 votes toxicdesire commented Oct 31, 2019 reply Follow Share 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. 0 votes 0 votes Shagun Singh commented Oct 31, 2019 reply Follow Share Got it Thanks 1 votes 1 votes logan1x commented Nov 3, 2019 reply Follow Share Thank you for explaining. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Option (A): All thrown objects Shagun Singh answered Oct 31, 2019 Shagun Singh comment Share Follow See all 0 reply Please log in or register to add a comment.