Solved

Consider the Following Program

Question 50

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents