Given the following code: Which import statements, when inserted independently at (1), will make the program print

Question:

Given the following code:

image text in transcribed

Which import statements, when inserted independently at (1), will make the program print 7, when the program is compiled and run? Select the two correct answers.

(a) import static Math.*;

(b) import static Math.sqrt;

(c) import static java.lang.Math.sqrt;

(d) import static java.lang.Math.sqrt();

(e) import static java.lang.Math.*;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: