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
Is it true that all c# types derive from a common base class?
What is datatable and dataset in c#?
How do you sort a list in c#?
How are Windows programs different from normal C-programs?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is c# and why it is used for?
How long will it take to learn c#?
What is interface inheritance in c#?
What are constants in c#?
What does assert() do in c#?
Why to use “finally” block in c#?
how to stored and retrive video in Sql server using asp.net c#......?
What is system predicate?
What is the major difference between a custom control and user control?
What is system console writeline in c#?