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's the Difference between DSN and DSN Less connection?

3 Answers  


Which is an advantage of application service providers (asps)?

0 Answers  


why and how static variable retain their value after postback form ?

0 Answers  


What are the scripting objects in asp?

0 Answers  


What is asp

0 Answers   STC,






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

0 Answers  


Define a filesystemobject object?

0 Answers  


Can I use the win32 api from a .net framework program?

0 Answers  


Define managed code?

0 Answers  


Explain the advantages of using asp?

0 Answers  


What are the attributes of the tags?

0 Answers  


what is the need of a sealed class when we are having a structure

0 Answers   HCL,


Categories