Predict the output of following Java program
// Note static keyword after import. 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/amp/
Quiz of this Question