Java - Exception Handling
Find the error in this Java code snippet:
try {
int x = 5 / 0;
} catch (Exception e) {
System.out.println("Error");
}try {
int x = 5 / 0;
} catch (Exception e) {
System.out.println("Error");
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions