Question: What is the result of this code?

  1. It will throw an ArithmeticException.
  2. It will run and output 0.
  3. It will not compile because of line 3.
  4. It will run and output infinity.

Answer: The correct answer of the above question is Option A:It will throw an ArithmeticException.