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 post back c#?
What I can do with c#?
What is the full form of GAC? Explain its uses?
Name the method of servicebase class?
What is a event in c#?
List the differences between method overriding and method overloading?
Why do we use abstraction in c#?
How to use the sreamReader class to read form a text file?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?
Why do we need nullable types in c#?
What is a method signature?
How do you determine whether a string represents a numeric value?
What is singleordefault?
How many constructors can a class have in c#?