why we import both packages java.awt.*; and java.awt.event.*;
as java.awt.*; can import all classes na. then what is the
need of importing java.awt.event.*; ?
Answer
writing java.awt.*; can import only the classes inside it but not its sub packages. so we need to write the sub package also.