ICSE where is try and catch block used in java
sizaB:
In a programme to handle exceptions.
Answers
Answered by
2
hey try catch block is used if exception have crept into our program .catch block is used after try block.
Answered by
2
Hey!
Whenever we want to monitor for exceptions we must keep it in a try block.
The exception will be caught by the catch block.
Eventually,it will be removed by throws keyword.
Try and catch block is used when you think an error might happen.
Hope it helps^^
Whenever we want to monitor for exceptions we must keep it in a try block.
The exception will be caught by the catch block.
Eventually,it will be removed by throws keyword.
Try and catch block is used when you think an error might happen.
Hope it helps^^
Similar questions