Multiple Choice Question

Quiz Guidelines

 

QID: 
72
Tags: 
Question: 

Which of the given options should be inserted at line 1 so that the following code can compile without any errors?

package objective1;       // 1
public class StaticImports{
public StaticImports(){
out.println(MAX_VALUE);
}
}

(Assume that java.lang.Integer has a static field named MAX_VALUE)

Select 2 options

A. import static java.lang.Integer.*;
B. static import java.lang.System.out;
C. static import Integer.MAX_VALUE;
D. import static java.lang.System.*;
E. static import java.lang.System.*;

Q&A Set: