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 are the different states of a thread?
What is the difference between ienumerable and enumerable?
When should I throw an exception?
Can you inherit multiple interfaces?
7 Answers Host4Big, Mind Tree, Moftak Solutions, Siebel Systems,
Do void methods have parameters?
how to use caching in our program. why we use it give one example in code
Explain about CTS?
Explain what is an interface in c#?
Can u create multiple threads of execution ?
1 Answers IBM, ITC Infotech, UHU,
What do you mean by saying a "struct is a value type"?
What is parameterized constructor?
How is exception handling implemented in c#?