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
How do you classify Dialog Box?
What is parseint?
Is java a compiler?
How many types of variables are there?
What types of index data structures can you have in java?
What is the difference between form & report?
What is constructor and its types?
What is the collections api?
What is the use of string and stringbuffer?
What is a protected void?
What is floor in java?
What is a boolean expression in java?
Explain about data types?
What are peerless components?
Explain about main() method in java ?