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 are server-side includes?

0 Answers  


Which is the default Scripting Language of ASP (server- side)?

2 Answers  


hello dear this quadir saif and im doing bca .i want hotel management project in asp.net (with backend sql).on my id (quadir2011@rediffmail.com)

0 Answers  


Difference between GET and POST? Which is used when?

3 Answers  


What are the asp components?

0 Answers  






How You Can use Dropdownlist with in Data Grid .DropDownlist having data from Database?

2 Answers   MIT,


whta are the stored procedure and why they are needed??

2 Answers   IBM,


Explain the difference between the value-type variables and reference-type variables in terms of garbage collection?

0 Answers  


How do I open an asp file?

0 Answers  


Whats the difference between struct and class in c#?

0 Answers  


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

0 Answers  


What is the difference between razor and aspx view engine?

0 Answers  


Categories