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
What are the types of methods in c#?
What is the difference between an integer and int?
What is yield keyword?
what is partial assembly reference
Why do we use hashtable in c#?
Define encapsulation?
Give an example to show for hiding base class methods?
Are constructors inherited c#?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
What is ac callback?
Does c# support try-catch-finally blocks?
What is the difference between field and variable in c#?
Why do we need to serialize data?
What is field in c#?
Is c sharp open source?