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.*; ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / hardyesh gupta
java.awt.*; imports the classes available in awt package,but
it does not import packages available in awt.To import the
event package available in awt package, we use the
java.awt.event.*;
| Is This Answer Correct ? | 6 Yes | 0 No |
Why synchronization is important?
What does localhost mean?
what is the major difference between linkedlist and arraylist in java?
difference between byte stream class and character stream class?
Can you achieve runtime polymorphism by data members?
Difference between final and effectively final ? Why is effectively final even required ?
What is finalize() function in java?
What is a singleton puppy?
Can a constructor call the constructor of parent class?
why java not supproting multiple inheritance?
What is the difference between state-based unit testing and interaction-based unit testing?
Difference between Primary key and unique key?