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 |
What is natural ordering in java?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
why we need this (1.object,2.class,3.data hiding,4.encapsulation,5.abstraction,6. polymorphism,7.inheritance)
What is singleton class in ruby?
What things should be kept in mind while creating your own exceptions in java?
What are the different http methods?
What is the difference between form & report?
What is the difference between Byte stream and Charecter Stream?
Explain JPA in Java.
What is java in simple terms?
What languages are pass by reference?
What is api in java?