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 |
Can a class have multiple subclasses?
What is the multilevel inheritance. and also give the Example of it ?
How to store image in arraylist in java?
How to sort elements in a parallel array in java?
How to solve the problem of generating the unique hash keys with hash function?
What is the reason behind using constructors and destructors?
What is an off by one error in java?
What is the Dictionary class?
How do you add an element to an arraylist in java?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
what is difference between excute query ()and execute update ()?
Why collection doesn’t extend cloneable and serializable interfaces?