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
What is the primitive type byte?
Why javac is not recognized?
What are the advantages of user defined functions?
Does unicode support all languages?
Can we clone singleton object in java?
Explain what access modifiers can be used for methods?
What is use of map in java?
What are recursive functions? Give some examples?
How many bytes is 255 characters?
What is type parameter in java?
How do I know if java is installed?
What is math exp in java?
What is a heavyweight component?
What are the actions that can occur when a thread enters blocked state?
Explain about serializable interface in java?