Skip to content
Related Articles

Related Articles

Java | Java Packages | Question 3

View Discussion
Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021

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[])

(A) Compiler Error
(B) Runtime Error
(C) GeeksforGeeks
(D) None of the above

Answer: (C)

Explanation: Please refer

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!