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 a list in java?
What is the Scope of Static Variable?
How do I compare two strings in word in java?
Explain yield() method in thread class ?
What is an empty list in java?
Is Java a dying language?
How do you compare objects in java?
Why java is secure? Explain.
What is a local block?
What is the do while loop syntax?
Can we override constructors?
What is default locale java?
Can we declare register variable as global?
What is null statement?
Write a method to check if input string is palindrome?