Answer Posted / prosanta
yes,
follow this example-
static void Main(string[] args)
{
try
{
throw new Exception();
}
catch
{
try
{
Console.WriteLine("This is the 1st
exception");
throw new Exception();
}
catch
{
Console.WriteLine("This is the 2nd
exception");
Console.Read();
}
}
}
output:
This is the 1st exception
This is the 2nd exception
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What does m mean in decimal c#?
What is the advantage of static class in c#?
What is out in c#?
What are the 2 broad classifications of data types available in c#?
Define parsing?
What is difference between dictionary and hashtable?
the c# keyword .int. Maps to which .net type?
Is it possible to have different access modifiers on the get/set methods of a property?
What is strongly typed in c#?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
What is parameter c#?
What is the interface in c#?
What is the lock statement in c#?
How do you determine whether a string represents a numeric value?
What is nullable types in c#?