Can we have multiple try and a single catch block? | Sololearn: Learn to code for FREE!
+ 1

Can we have multiple try and a single catch block?

purely java answer required

4th Feb 2017, 1:37 PM
Deepak
Deepak - avatar
2 odpowiedzi
+ 2
In Java is not possible: every try must have its catch. You can use nested try cach blocks.
4th Feb 2017, 6:27 PM
seamiki
seamiki - avatar
+ 1
no is my call
4th Feb 2017, 1:37 PM
Deepak
Deepak - avatar