This will not work cause println() is a method not of System class but of printWriter class when you say import static java.lang.System.out;
out is a static member of class System so your are saying that I will not always like to use System and my program should be smart enough to understand that out is memeber of System class and use it. So this out.println("Hello"); // by the book and println("Hello"); // will this also work?
will never work
Hope that clears your doubt. and if you want to clear this exam make sure you have java 5 installed on your system and you try and do as much practical as possible that will clear your air for a lot of stuff.
He's giving us the slip! Quick! Grab this tiny ad!