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 |
Define a class and an object?
What is callback delegate in c#?
What is arraylist?
How to Show Message box in Metro Style App?
How can I process command-line arguments?
Explain polymorphism in c# with a simple example?
Explain the difference between private and shared assembly?
How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?
give an example for suspending, resuming, and stopping a thread ?
From which base class do all Web Forms inherit from?
How big is a 64 bit integer?
If we inherit a class do the private variables also get inherited ?