public class IntByZero { public static void main(String args[]) { int a = 42; int b = 0; int result; result = a / b; System.out.println(result); } }