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 |
C Sharp
Explain About Virtual functions and their use.
Explain the top reason to use c# language?
What is a jagged array?
Why are c# strings immutable?
What is the wildcard character in SQL? Let?s say you want to query database with LIKE for all employees whose name starts with La.
What is the use of multicast delegate while methods of multicast delegate do not execute in a order?
Name any three ways to pass parameters to a method in c#?
What is the purpose of a console table?
What is the difference between inheritance and abstract class?
What is the example of predicate?
windows c# using datagridview in edit form sql server
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)