What is Exception ?
When is try, catch block used ?
Answer Posted / shikha nirankari
exception is an unhandled situations about which we know
before that they can arrise. For example try to divide by 0
is an exception. For handling exceptions we use try n catch
blocks.
try block is used to guard the statements in which exceptin
can be arrised.
catch block is used to take an action when an exception is
caught in a try block.
both try n catch blocks are dependent on each other. the
exception arrised in try block n the action needed to take
on its arrising will be done through catch block.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
very Simple Question i Know But I Cant Do It public int Y { get { return _y; } set { _y = value; } } How Can i Check for Value Y in Accessories Say if Y > 5
What is server control
Define global.asa file?
Enter the roll number of a student and get his marks from a database file called MARKS. Use an ASP code for the same
What is asp language?
what is stored procedural
What is an asp program?
Explain life cycle of asp page.
What is the difference between post and get method.
Distinguish functionalities of ASP in web design.
What is the default scripting language in asp?
Is classic asp still supported?
How many types of report in asp.net 2008?
What is the difference between razor and aspx view engine?
Is asp the same as saas?