Static Import to Shorten System.out.println()

Published on

Sometimes we feel System.out.println is a long statement to print. static import may shorten it a bit but it is not recommended, because it results in poor readability. I am just using this situation to explain static import and avoid using it in the below scenario.  

What is System.out.println

Published on

System.out.println is a Java statement that prints the argument passed, into the System.out which is generally stdout. System – is a final class in java.lang package. As per javadoc, “…Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined properties and environment variables; a … Continue reading What is System.out.println