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 / dhana
As it imports all the classes in java.awt package. It
doesn't import any packages inside java.awt i.e. event package.
So we should declare one more import stat in order to import
all the classes inside event package.
Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Can we use different return types for methods when overridden?
Which class contains a method: cloneable or object?
What is methodological framework?
What is the default value of the local variables?
Mention the default values of all the elements of an array defined as an instance variable.
Explain list interface?
Is java call by reference?
What are keywords in programming?
Explain the difference between map and flatmap stream operation?
What is the significance of continue jump statement? Explain with an example.
What are advantages and disadvantages of OOPs?
Is it possible to specify multiple jndi names when deploying an ejb?
What class allows you to read objects directly from a stream in java programming?
What Is Query Throttling in java?
What do you mean by checked exceptions?