I think there's a mistake in the answer of this question.
Here question:
Which of the given options should be inserted at line 1 so that the following code can compile without any errors?(Assume that java.lang.Integer has a static field named MAX_VALUE)Code: Select all
package objective1; // 1 public class StaticImports{ public StaticImports(){ out.println(MAX_VALUE); } }
Here answer:
Only one of anwer variant is rigth, not two, here isYou had select two option
import static java.lang.Integer.*;
static import java.lang.System.out;
static import Integer.MAX_VALUE;
import static java.lang.System.*;
static import java.lang.System.*;
import static java.lang.Integer.*;