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
Can constructor be overloaded in c#?
What are controls in c#?
How do I convert a string to an int in c#?
What is the default value of object in c#?
What is the usage of OLE?
Can fields inside a class be virtual?
What is the main purpose of xml?
How many static constructors are allowed in a class?
Can a class have more than 1 destructor?
Why we use get and set method in c#?
What is array c#?
What are types of constructor?
What do u mean by delegation of authority?
What are get and set in c#?
Which namespace is required to implement trace ?