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
Does collectionutils isempty check for null?
Does importing a package imports its sub-packages as well in java?
Can an interface extend another interface?
How many bytes is a url?
Can we sort set in java?
Why string is called as immutable?
What is the exact difference in between unicast and multicast object? Where we will use?
What is the final variable?
Which programming language is best in future?
What is the main advantage of passing argument by reference?
What is t in generics in java?
What is parsing in grammar?
What causes memory leaks in java?
What is the use of using enum to declare a constant?
What is the size of an array?