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 |
Can we clone singleton class in java?
How destructors are defined in java?
What is class level lock ?
Can a constructor be made final?
What are the difference between string, string builder, and string buffer in java?
Why is string class considered immutable?
How can we avoid including a header more than once?
What is meant by Servelet? What are the parameters of service method?
What is a line break example?
Is 0 true or false in java?
Is null in java?
who was the founder of java
32 Answers CTS, HCL, ProKarma,