91.5k views
3 votes
Hide Time Remaining A

Suppose that the following statement is included in a program. import static
java.lang. Math.*; After this statement, a static method of the class Math can be called
using just the method name.
A. True
B. False

1 Answer

6 votes

Answer:

True

Step-by-step explanation:

The class Math include mathematical functions such as sin(), cos(), tan(), abs(), etc

If the given statement is not written, each of the math function will be written as (take for instance, the sin() function):

Math.sin()

But after the statement has been written (it implies that the Math library has been imported into the program) and as such each of the mathematical function can be used directly.

So instead of Math.sin(), you write sin()

User Dieki
by
4.4k points