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 args mean in c#?
Why do we need events in c#?
If you want to convert a base type to a derived type, what type of conversion do you use?
What is parameters in c#?
What is the difference between c and c sharp?
Can a class be private in c#?
Define thread? Explain about multithreading?
Can var be null c#?
In .NET which is the smallest unit of execution?
Can u list some style properties of List Box?
If dll and exe files are same it means you can deploy both the files in gac?
Explain more on CLR
What is a nullreferenceexception?
What is the use of return in c#?
What is the difference between icomparer and icomparable in c#?