Answer Posted / praseetha sandeep
yes, we can throw...
catch(Exception e)
{
....
thow e
}
you can also throw new exceptin of different type
catch(IOException c)
{....
throw new FileNotFoundexception(filename)
}
we can also do like
catch(IOException c)
{
throw new FileNotFoundexception(filename,c)
}
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Are there constructors in c sharp?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
How many static constructors are allowed in a class?
Any problem found in vs.et
Can fields inside a class be virtual?
How long does it take to learn c# for unity?
Is it possible to force garbage collector to run?
Does the system.exception class have any cool features?
Are constructors inherited c#?
Illustrate namespaces in c#?
What's the difference between a static method and a non static method c#?
What is the difference between convert and parse in c#?
Why delegates are safe in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is concrete method in c#?