can we have try block without catch or finally block in java
‘try’ block without either a ‘catch’ block or a ‘finally’ block is not allowed in java.The main purpose of a ‘try’ block is to wrap code that might throw an exception, and it must be followed by either a ‘catch’ block to handle exceptions ‘finally’ block to execute code after the ‘try’ block regardless of …
can we have try block without catch or finally block in java Read More »