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 do you mean by exception handling in Java?
What is the access scope of a protected method?
Difference between this() and super() ?
Write code to implement bubble sort in java?
Write a program to print count of empty strings in java 8?
Why we override equals() method?
Can we serialize static variables in java?
What is a classloader in java?
What is get () in java?
What are pass by reference and pass by value?
Are arrays passed by reference in java?
What is codebase?
How to use Media tracker Class.
what is recursion in java
What is the static method?