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 |
How are observer and observable used in java programming?
Using callable statement how can you pass out parameters, explain with example?
Difference between final and effectively final ?
why using interface interface ?
What are methods in java?
What do you understand by final value?
What do you mean by light weight and heavy weight components?
How to change the priority of thread or how to set priority of thread?
Explain throw keyword in java?
what is the use of custom tags? with example?
how to create daemon thread in java?
What is the difference between yielding and sleeping in java programming?