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 a resource? Provide an example from your recent project.
2 Answers IBM, Logica CMG, Wipro,
What does immutable mean in c#?
Can you have parameters for static constructors?
Is string a data type in c#?
C# is case sensitive, what is mean by case sensitive
What are circular references?
Is int a class in c#?
Explain the difference between object type and dynamic type variables in c#?
What?s an abstract class?
What is delegate in c# interview questions?
What is mvc pattern in c#?
What is the difference between const and readonly in c#.net?