Naresh Shanmugam wrote:If it is a static import then
makes sense.
If is a normal "import" statement then is there any difference between
What does import java.lang.String.*; signifies
Imports all of the classes in the package String. Which, as it has been said, I did not think that this would compile.
Imports just the String package. If you wanted to use any of the classes in the package String then you would have to specify 'Swing.' before the class name.
A better example
would *might* have been:
If you wanted to use any of the classes in swing when you use the import statement without the '.*' then you have to specify 'swing.' before any of the class names you are using.
For example:
I hope i cleared things up for you.
EDIT: replaced 'would' with '
*might*'
Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.