MCQs > IT & Programming > C# > What is the purpose of the catch block in the following code? try {     // Code that might throw exceptions of different types } catch {     // Code goes here }

C# MCQs

What is the purpose of the catch block in the following code?

 

try {

    // Code that might throw exceptions of different types

}

 

catch {

    // Code goes here

}

Answer

Correct Answer: This catch block can be the last one in a series of catch blocks to handle any exception which is not handled by the preceding catch blocks, each of which handles an exception of a particular type.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it