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 / dhana
As it imports all the classes in java.awt package. It
doesn't import any packages inside java.awt i.e. event package.
So we should declare one more import stat in order to import
all the classes inside event package.
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How to compare two strings in java program?
What is stack class in java?
What is classpath?
How does enum work in java?
What are the default and parameterized constructors?
What is backdrop?
How do you decide when to use arraylist and linkedlist?
How do you sing an Applet ?
What do you know about the garbate collector?
Is java a compiler?
What is difference between array and vector?
What is concurrent hashmap and its features?
What language is java written?
How many bits is a boolean?
What is a literal coding?