There can be try block without catch block? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

There can be try block without catch block?

9th Aug 2019, 5:25 AM
Neeraj kumar
Neeraj kumar - avatar
1 Réponse
+ 2
No. A try always needs a catch in Java.
9th Aug 2019, 5:30 AM
Paul Grasser
Paul Grasser - avatar