If all code is written in a try block and write a catch
block with Exception type Exception .In that scenario will
all the exceptions catched by that catch block? or any
exceptions which will not be caught?

Answer Posted / vinay tiwari

if we use some piece of code that return in different
language then there may be exception that are not define in
exception class to catch these type of exception we use
general catch handler
for exe
try
{
........
}
catch
{
..........
} //catch block without parameter is called general catch
handler

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster array or arraylist in c#?

670


Can you declare a field readonly?

702


Explain About Virtual functions and their use.

760


Explain boxing and unboxing in c#?

686


What is different between Implicit conversion and Explicit conversion in C#?

698


Is dictionary a collection?

627


What is the difference between abstract and virtual?

655


If you define a user defined data type by using the class keyword, is it a value type or reference type?

698


Who is a accessibility modifier “protected internal” available to ?

776


What is difference between C# and VB.NET?

750


Can class inherit from struct c#?

717


What is the difference between returning iqueryable vs ienumerable?

674


What I can do with c#?

710


How do I convert a string to an int in c#?

706


Why it's said that writing into .NET Application Configuration Files is a Bad Idea?

725