Why can't I import static java.lang.System.out.println? -
It seems weird that I can not import static java.lang.System.out.println, when I import static Java I can .lang.Math.abs. Is there any reason behind this or am I really doing something stupid that I do not see at this time? (Using eclips.)
math is a class on which
Ab is a static method,
system.out is a static field instead of a class, so its
println method is not actually a static method, rather There is an example method on a static field.
Comments
Post a Comment