The try is a keyword defined in the java programming language. Keywords are basically reserved words which have specific meaning relevant to a compiler in java programming language likewise the try keyword indicates the following :
-- The try keyword in java programming language is used to
wrap the code in a block of statements where there are chances to get some
erroneous condition in form of an exception object.
Example to use the
try blocks:|
try{ |
|
try{ catch
(Exception1 e){ |
|
try{ catch (<java.lang.Exception or subclass> e){
finally{ |
|
Recommend the tutorial |
Ask Questions? Discuss: try Java Keyword
Post your Comment