Multiple choice

Which of the following statements regarding Math class is/are true?

i. Math class cannot be instantiated and all the methods are static. ii. All the methods are non-static in Math class and so, the Math class can be instantiated. iii. Constructor is always public in Math class. iv. Constructor is always private in Math class.

  1. i. and iv. are true

  2. i. and iii. are true

  3. ii. and iii. are true

  4. ii. and iv. are true

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This answer is correct. Math class has all the methods as static and it can be called without instantiating. Also, the constructor defined for Math class is declared as private.