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

Define server object?

0 Answers  


what is the role of attributes properties in asp field object

0 Answers  


In how many ways you can connect to the Database?

2 Answers   TCS,


Can I use com objects from a .net framework program?

0 Answers  


Explain how to handle error in asp?

0 Answers  






Resource Files: How to use the resource files, how to know which language to use?

0 Answers   TCS,


Can .net framework components be used from a com program?

0 Answers  


Explain life cycle of asp page.

0 Answers  


What is asp

0 Answers   STC,


how can i show the data of sql table in different dropdown list?

1 Answers  


Explain the function of attributes in tags?

0 Answers  


How do asp pages work?

0 Answers  


Categories