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 a filesystemobject object?

0 Answers  


Define the asp scripting objects?

0 Answers  


What is a variable in asp?

0 Answers  


Name some of the ASP components?

3 Answers  


Write a program in ASP that connect with "Employee" Database and Select all records from "Emp" table and shown in tabular form.

0 Answers  


What is asp software?

0 Answers  


Hii My Question is How the Down Payment will clear in APP? Can any one help me

0 Answers  


What must be installed on an IIS4 machine to use the CDONTS e-mail server object? A. FTP service B. SMTP service C. IIS administrator D. Exchange Server E. IPX/SPX protocol

1 Answers  


What is hidden field?

0 Answers  


what is database deployment?

0 Answers  


How many global.asa files can an application have in asp?

0 Answers  


What is caching in asp?

0 Answers  


Categories