1. What exception will be occurred with below code?

int a  = 100;
int b = getSumOfProducts(); // This method returns 0 values
int c = a/b;
  1. NullPointerException
  2. ArithmeticException
  3. IOException
  4. ArrayIndexOutOfBoundsException
Answer: 2 – ArithmeticException