Question: In the following java statement the sqrt ( ) method from the Math class has been used to find the square - root value of

In the following java statement the sqrt() method from the Math class has been used to find the square-root value of 5.6. Which of the following modifiers has been used in declaring the sqrt() method so that it can be called without creating any reference-variable of Math class?
System.out.println(Math.sqrt(5.6));
A. final
B. protected
C. private
D. static

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!