fork download
  1. class Main {
  2. public static void main(String args[]) {
  3. int x = 0;
  4. int y = 10;
  5. int z = y/x;
  6. }
  7. }
Runtime error #stdin #stdout #stderr 0.04s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "main" java.lang.ArithmeticException: / by zero
	at Main.main(Main.java:5)