Ask Question

True of False - use T or F The Math class can be instantiated.

+5
Answers (1)
  1. 4 July, 15:53
    0
    F

    Explanation:

    The Math class cannot be instantiated because it has a private constructor.

    However all the methods in the java. lang. Math are static which means that you can invoke them directly without having to instantiate the class. For example:

    static int abs (int a) defined in the Math class can be invoked from the calling function as:

    int absolute_value = Math. abs (a);

    Note that the class Math is also declared as final which means it cannot be extended by any other class as well.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “True of False - use T or F The Math class can be instantiated. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers