Being new to Java, I have read lots of sample programs, and have noticed something when using the "import" statement - a lot of the programs have lines like:
import java.awt.* import java.awt.event.*
What is the purpose of that 2nd import? Doesn't the first line mean "all possibilities beginning with 'java.awt.'"? If that's true, then wouldn't "java.awt.event.*" be a part of the first import? I must be misunderstanding the meaning of '*' in Java, as none of the books or tutorials I've read answer this!
Actually.. the import java.awt.*; is meant to import the classes present in the package java.awt but not the packages present in java.awt .. java.awt.event is an another package .. the name of it is so.. bcoz this package contains the classes which supports eventhandling on awt components.. thats all..
but that doesn't mean that import java.awt.*; means importing java.awt.event.* also..