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
Define delegate?
Why dependency injection is used in c#?
The int maps to which C# keyword in .NET type?
Can we inherit sealed class in c#?
Which class comes after the SortedList class?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
What is func c#?
what is difference between destruct or and garbage collection ?
Why we use get set property in c#?
What is the advantage of dependency injection?
Is c# a strongly-typed language?
Why is ienumerable used?
What is the default value of decimal in c#?
Is datetime immutable c#?
What is private static in c#?