Why are the methods of the Math class are static?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where import statement is used in a java program?

608


Does java vector allow null?

537


What's the purpose of using break in each case of switch statement?

506


difference between byte stream class and character stream class?

4081


Is null a value?

558






What is the static method?

567


What is casting in java programming?

579


How to perform bubble sort in java?

586


What languages are pass by reference?

536


Can we sort hashmap in java?

526


What are the Static and Dynamic Variables? Differentiate them.

599


Can we override constructor?

534


How does varargs work in java?

607


Explain the importance of throwable class and its methods?

565


What method is used to specify a container's layout in java programming?

540