Java 5.0 Features Part 2 – static imports
Posted by SARAVANAN SIVAJI on October 9, 2010

Like this:
Be the first to like this post.
This entry was posted on October 9, 2010 at 4:08 am and is filed under com.saravananmtech.java.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
chitresh said
when you are importing system.out why are we again giving out.println??
SARAVANAN SIVAJI said
@ Chitresh,
Hi Chitresh,
Without “out” variable we can’t call println() method.
If you look java.lang.System class, you can see the reference variable “out” for the PrintStream class has been declared as static variable.