0

what is the purpose of ‘try’ and ‘catch’ in java?

19th Oct 2017, 9:42 AM
Loukya
Loukya - avatar
3 Answers
+ 2
19th Oct 2017, 11:10 AM
Nanda Balakrishnan
+ 1
The try block contains set of statements where an exception can occur. A try block is always followed by a catch block, which handles the exception that occurs in associated try block. A try block must be followed by catch blocks or finally block or both.
19th Oct 2017, 9:46 AM
RanjOyHunTer
RanjOyHunTer - avatar
0
https://chat.whatsapp.com/EOxOARoXozW3GpFQvxDhLu if you are interested you can join java group
19th Oct 2017, 12:12 PM
prashant vyas
prashant vyas - avatar