Static Import help to access any static member of class directly.Advantage of using this is that programmers require less code.
import static java.lang.System.*;
public
class StaticImport {
public static void
main(String[] args) {
out.println("Hello Static Import Example"); // STATIC IMPORT
}
}
No comments:
Post a Comment