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
What is the purpose of interface?
How do you generate random numbers in java?
What are examples of modifiers?
What is the maximum size of byte array in java?
What is the final class modifier?
What is console based application in java?
What are the java ide’s?
How do I get the | symbol on my keyboard?
What is meant by object oriented programming – oop?
List the interfaces which extends collection interface?
How do you identify independent and dependent variables?
If two threads have same priority which thread will be executed first ?
what do you mean by stream pipelining in java 8? Explain
What are checked exceptions?
What happens when main () method is declared as private?