The following are the complete contents of Main.java file.
Which packages are automatically imported?
class Main{ public static void main (String [] args){ System.out.println ("hello"); } }
Select 2 options
Correct Options are : C F
System is not a package. It is a class in java.lang package.
String is a class in java.lang package.
If there is no package statement in the source file, the class is assumed to be created in a default package that has no name.