Java | Java Packages | Question 3
Predict the output of following Java program
import static java.lang.System.*;
class StaticImportDemo
{
public static void main(String args[])
{
out.println( "GeeksforGeeks" );
}
}
|
(A) Compiler Error
(B) Runtime Error
(C) GeeksforGeeks
(D) None of the above
Answer: (C)
Explanation: Please refer https://www.geeksforgeeks.org/packages-in-java/
Quiz of this Question
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...