Given the following code: Which import statements, when inserted independently at (1), will make the program print
Question:
Given the following code:
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
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: