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 Posted / shiva
writing java.awt.*; can import only the classes inside it but not its sub packages. so we need to write the sub package also.
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What is 32 bit float?
Is array an object in java?
Why we use multi threading instead of multiprocessing?
What is multi level inheritance in java?
What does i ++ mean in Java?
What is data member in java?
difference between byte stream class and character stream class?
When is update method called?
What is the nested interface?
Which is illegal identifier in java?
What happens if we override private method?
Explain the difference between protected and default access.
How do you call a reference in java?
What is a parameter example?
Describe different states of a thread.