Solved

Consider the Following Program. Public Class CircleArea

Question 33

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