Computer Science, asked by UdayangshuRoy, 1 year ago

What is a try block in java?

Answers

Answered by vivekanandojha
1
The try block contains set of statements where an exception can occur. A try blockis 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.

UdayangshuRoy: Ok thanks...!!
vivekanandojha: mark as brainlieast
UdayangshuRoy: ok
riki46: 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 catchblocks or finally block or both.
Answered by simplegirl16
5
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.

UdayangshuRoy: mr don't send this type of messages plzzzzzz
Similar questions