Basics of Exception Handling in Java

Casual Mode - Take your time!

1 / 14
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What would be the output of the following program?

Class A {
 public static void main(String args[]) {
  int a = 0;
  int b = 10 / a;
 }
}
  1. 0
  2. 10
  3. Infinite
  4. RuntimeException
  5. Compile Time Exception
Change Mode