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 / shiva
writing java.awt.*; can import only the classes inside it but not its sub packages. so we need to write the sub package also.
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What is the difference between import java.util.date and java .util?
What is the Difference between Final Class && Abstract Class?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
How to create packages in java?
How to solve the problem of generating the unique hash keys with hash function?
What is the function of log?
What is difference between call by value and call by reference?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is JFC?
Which is dependent variable?
What are operators and its types?
Outline the major features of java.
What is a byte string?
How to create an interface?
Is java developer a good career?