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 are the features of asp?
Can I avoid using the garbage collected heap?
what is STLC in Testing
What are the 3 types of internal controls?
Speaking of boolean data types, whats different between c# and /c++?
Hi, i am looking for join learn real time project on dotnet please tell me which is the best institute now i am staying in a ameerpet. thank u for advance.
Why does my code get a security exception when I run it from a network shared drive?
What do you mean by asp?
What is meant by cookies? Explain the main features?
Explain the difference between querystring collection and form collection?
Whats the difference between struct and class in c#?
How do I create an aspx page?
What is asp full form?
Why do we use asp?
Explain the post & get method or explain the difference between them in asp?