pls give me ans of these ques
Attachments:
Answers
Answered by
2
6) try block throws the exception...
7) catch(){
// is used for this purpose.
}
8) catch could handle multiple exception but we had to write catch like this:
catch(Exception e){
// statement how you want to handle
}
otherwise we had to write for catch block for every particular type of exception we want to handle.
9) finally statement always run.
hope all of answer help you
:)
7) catch(){
// is used for this purpose.
}
8) catch could handle multiple exception but we had to write catch like this:
catch(Exception e){
// statement how you want to handle
}
otherwise we had to write for catch block for every particular type of exception we want to handle.
9) finally statement always run.
hope all of answer help you
:)
Similar questions