Which of the given options should be inserted at line 1 so that the following code can compile without any errors?
package mypkg; // 1 public class Main{ public Main (){ out.println (MAX_VALUE); } }
Assume that java.lang.Integer has a static field named MAX_VALUE
Select 2 options
Correct Options are : A D
The order of keywords for a static import must be "import static ... ".
You can either import all the static member using import static
java.lang.Integer.* or one specific member using import static
You must specify the full package name of the class that you are importing.
So, import static Integer.*; is wrong.