What is the difference between
import static java.lang.System;
and
import static java.lang.System.*;
Have you tried asking google?
There are a lot of java tutorials on the Oracle web site that may help understand what you are trying to fathom. In any case, here is a link to a page on Oracle's java site that explains it clearly: http://docs.oracle.com/javase/1.5.0/docs/guide/language/static-import.html
In short words.....
import static java.lang.System; - It means u are just trying to import the namespace System
import static java.lang.System.*; - It means u are trying to import all the namespaces that comes under System....no need to import the namespaces that comes under System again....
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.