What is Exception ?
When is try, catch block used ?



What is Exception ? When is try, catch block used ?..

Answer / 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

More ASP Interview Questions

What is full form of aspx?

0 Answers  


where should i get free version of Test Director to download

0 Answers  


Give the comment tags for the following?

0 Answers  


Is classic asp dead?

0 Answers  


What is ServerVariables collection?

2 Answers  






Is asp the same as saas?

0 Answers  


What inheritance is and an example of when you might use it?

0 Answers  


which sdlc model was used for whatsapp?

0 Answers  


What are the properties used to control the expiration of the page?

1 Answers  


what is abstact class in asp.net?

1 Answers  


What are the event handlers of Application Object?

1 Answers  


If I want to build a shared assembly, does that require the overhead of signing and managing key pairs?

0 Answers  


Categories