+ 1
Can we write more than one finally in java
java
3 Respostas
+ 5
No. There can only be one finally block per try/catch. If you need to do something different for each error (or for the lack of error), you'll have to write it in the try (no error) or catch(es).
+ 5
Right, one finally for every try/catch.
+ 1
but if we use multiple try catch in one program, then we can use multiple finally ?