public static void main(String[] args) {
try {
divideByZero();
} catch (ArithmeticException e) {
e.printStackTrace();
}
}
still got an ArithmeticException... Why?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Pavlo Plynko Java Developer at CodeGym
16 April 2020, 08:32
When you call e.printStackTrace(); - it means you print catched exception to the console in red.
+2