ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Try, Catch, Finally ?

Try---is to put the doubtful code in it, every try is associated with its own catch or finally block

Every try must have either a catch or finally block

 

catch---is used to catch the exceptions that is thrown by the try block

throw---to manually throw an exception

throws---this keyword is associated with a method. Using this keyword we announce that the method has doubtful code

 

finally---guarantees the execution of code

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter