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


Please Help Members By Posting Answers For Below Questions

What are the tasks performed by

tags?

686


What is a service application?

703


What are the 3 types of internal controls?

646


What is an asp model?

694


explain with example redaing contents and writing contents from a file using APS object stream.

1639


Suppose someone gives a VB dll file (component). How to use that in an ASP file?

1656


Explain the tags necessary to be present within the tag ?

660


Explain the tasks performed by <> tags?

712


How do I view an aspx file?

707


What is asp in web technology?

691


Which asp object is often used to retrieve user information from forms?

871


What is asp life cycle?

651


Explain the differences between asp and asp.net and is asp.net backward compatible to asp?

686


Name the two properties which are common in every validation control?

719


What is asp price?

696