What is Exception ?
When is try, catch block used ?
Answer Posted / 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 View All Answers
What purpose is served by the application.lock method?
can any one tell me about dot net framework not basic detail
Can I avoid using the garbage collected heap?
Explain the difference between post & get method in asp?
Define a filesystemobject object?
when we use ajax in.net
Name the control which would you use if you needed to make sure the values in two different controls matched?
Explain the post & get method or explain the difference between them in asp?
How do you administer security for my machine for an enterprise?
What are private assemblies and shared assemblies?
What options are available to deploy my .net applications?
Explain the advantages of using asp?
How we load the page in ASP?
What is the purpose of application.lock method?
How do you initialize a two-dimensional array that you don't know the dimensions of?