can we throw execption from catchblock
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ganni
the 'try' block contains the code which may have the
runtime errors. to handle that errors we use 'catch' block.
Is This Answer Correct ? | 2 Yes | 2 No |
What is use of singleton class in c#?
What is the difference between ref and out parameters in c#?
what is dynamic sql
What does type safe mean in c#?
What is the difference between overriding and overloading in systemverilog?
Valuetype/reference type?
Why we use get set property in c#?
Why c# is called type safe language?
What method is used to sort the elements of the array in descending order?
Can namespace contain the private class?
What is sqlconnection in c#?
Which of these statements correctly declares a two-dimensional array in c#?