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 / 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 |
Post New Answer View All Answers
What is queue in java?
What are the advantages of java?
Difference between overriding and overloading in java?
What is the instance of an object?
When does an object becomes eligible for garbage collection in java?
What do you understand by the term string pool?
Can we cast any other type to boolean type with type casting?
What is the Difference between Final Class && Abstract Class?
Who found java?
What is the difference between Grid and Gridbaglayout?
What are Normalization Rules? Define Normalization?
Why is java called the platform independent programming language?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the use of bufferedreader?
Can you declare a private method as static?