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
Tell us something about set interface.
Explain the difference between protected and default access.
Which command from the jdk compiles a java program?
How do you do exponents in java?
what is encapsulation in java? Explain
What is the default value of an object reference declared as an instance variable?
What is object english?
What is object-oriented paradigm?
What is double in java?
What are encapsulation, inheritance and polymorphism?
What is the access scope of protected access specifier?
Why are parameters used in functions?
What is a numeric string?
Which methods cannot be overridden in java?
How do you check if a string contains only numeric digits?