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 difference between aspx and ascx?

0 Answers  


What is caching in asp?

0 Answers  


define the functionality of web server in context to Active server page.

0 Answers  


Define session object?

0 Answers  


What happens to a html page in asp?

0 Answers  


Describe how a browser-based Form POST becomes a Server-Side event like Button1_OnClick

1 Answers   ADC, Microsoft,


6) Events in page life cycle?

1 Answers  


write a program for sorting of all students records in a class according to roll no. using ADO and corresponding database.

0 Answers  


How do I make it so that code runs when the security system is stopping it?

0 Answers  


hi this is madhu i have one doubt,regarding siebel Q: is this is mandatory when we r doing join between a bc & table , the table should extension table Reqired or not, can we do the join with base table also,

1 Answers  


Name the control which would you use if you needed to make sure the values in two different controls matched?

0 Answers  


Whats the implicit name and type of the parameter that gets passed into the class set method?

0 Answers  


Categories