previous | index | next

Java Method Calls

Why must arithmetic methods like square root be referred to in Java like Math.sqrt instead of just sqrt?

Because they are static methods and thus are called without an implicit parameter.


previous | index | next