🐛 Exception Catcher

⭐ Score: 0
🐛 Caught: 0/0
⏱️ 60s
🚨 Exception Throw Zone
🛡️ Catch Blocks
Click an exception, then select the correct catch block!
try {
  // Code that may throw...
}
catch (NullPointerException e)
Handles null reference access
catch (ArrayIndexOutOfBoundsException e)
Handles invalid array index
catch (ArithmeticException e)
Handles division by zero
catch (NumberFormatException e)
Handles invalid number parsing
catch (StringIndexOutOfBoundsException e)
Handles invalid string index
catch (ClassCastException e)
Handles invalid type casting

🐛 Exception Catcher

Learn Java exception handling by catching bugs!


Exceptions will fly around the screen. Click on an exception to select it, then choose the correct catch block to handle it.

NullPointerException
ArrayIndexOutOfBoundsException
ArithmeticException
NumberFormatException