Why are the methods of the Math class are static?
Answer / ranganathkini
The Math class contains methods used for most general
purpose mathematical calculations and hence serve more like
utility methods used for mathematical calculations and do
not depend on instance data to perform their job. Hence they
are static.
| Is This Answer Correct ? | 14 Yes | 4 No |
How do you sort arraylist in descending order?
Which api is provided by java for operations on set of objects?
what are the differences between final,finally,finalize methods?
what is meta-Inf?
What technique is carried out to find out if a particular string is empty?
Which class cannot be a subclass in java?
Explain the difference between hashmap and hashtable in java?
What are the differences between abstract class and interface?
What is the use of static keyword in "public static void main()"
10 Answers College School Exams Tests, Infosys, Six Dee Telecom,
Why is the main method static in Java?
What is a package in java? List down various advantages of packages.
What is a stream? what are the different types and classes of Streams?