handle all exception | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

handle all exception

Can we handle all exception by try - catch block? ever the exceptions which we don't control?

23rd Apr 2018, 4:26 PM
luc
luc - avatar
3 Answers
+ 3
This will catch any exception catch(Exception e) { }
23rd Apr 2018, 4:42 PM
TurtleShell
TurtleShell - avatar
0
thanks a lot :)
23rd Apr 2018, 5:22 PM
luc
luc - avatar
0
A
30th Apr 2018, 12:51 PM
Johny-D