Question

Which of the following is the correct way to handle exceptions in Java?

A try { } error { } handle { }
B handle { } catch { } end { }
C begin { } rescue { } ensure { }
D try { } except { } else { }
E try { } catch(Exception e) { } finally { }
Practice Next

Relevant for Exams:

Hey! Ask a query