Solved

Consider the Following Program

Question 27

Multiple Choice

Consider the following program. public class CircleArea {static Scanner console = new Scanner(System.in) ; static final float PI = 3.14; public static void main(String[]args) {float r; float area; r = console.nextDouble() ; area = PI * r * r; System.out.println("Area = " + area) ;}} To successfully compile this program, which of the following import statement is required?


A) import java.io;
B) import java.util;
C) import java.lang;
D) No import statement is required

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions