Can multiple catch blocks be executed?

Answer Posted / amina awan

Multiple catch blocks will not be executed. But we can use multiple catch blocks for a try block. The respective catch block will get executed according to the error arises.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a singleton unity?

560


What is xml serialization in c#?

476


Are all methods virtual in c#?

540


What is the major difference between a custom control and user control?

563


How many bytes is a char c#?

487






What are the basic string operations? Explain.

517


How can an inner class access the members of outer class?

549


What is the difference between abstraction and encapsulation in c#?

501


How can we sort the elements of the array in descending order?

538


What is default boolean value in c#?

491


what is c# command?

505


What is a constructor in c#?

520


Define c# delegate?

525


What is difference between === and ==?

470


Is c# difficult to learn?

489