Can multiple catch blocks be executed?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / photon
No, When the Exception handled the Correct Catch Block
,After that the cursor is move to finally Block, the below
catch block was not handled.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / guest
No, once the proper catch code fires off, the control is
transferred to the finally block (if there are any), and
then whatever follows the finally block
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vijay saxena
No,
try
{
int p = 0;
int t = 6 / p;
}
catch (ArithmeticException ex)
{
Console.WriteLine("Arithmetic Exception");
}
catch (Exception ex)
{
Console.WriteLine("General Exception");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you allow class to be inherited, but prevent the method from being over-ridden?
When should you use generics?
How can we convert XML Data to DataBase Table in C#.Net?
syntax for writing private method in a interface
explain the features of static/shared classes.
How do I trim a space in c#?
What are virtual classes in c#?
What is a thread c#?
What is static classes in c#?
Can you create sealed abstract class in c#?
hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO
What is namespace c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)