Analyze the following code:
```
public class Test {
public static void main(String[] args) {
double radius;
final double PI= 3.15169;
double area = radius * radius * PI;
System.out.println("Area is " + area);
}
}
```
a. The program has compile errors because the variable radius is not initialized.
b. The program has a compile error because a constant PI is defined inside a method.
c. The program has no compile errors but will get a runtime error because radius is not initialized.
d. The program compiles and runs fine.
a. The program has compile errors because the variable radius is not initialized.
You might also like to view...
The Surface tablet comes in two versions, the Surface Mini and the Surface Pro
Indicate whether the statement is true or false
________ testing consists of testing an application with a user prior to releasing an application for wider use
Fill in the blank(s) with correct word