shiva


{ City } hyderabad
< Country > india
* Profession * student
User No # 91639
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 20
Users Marked my Answers as Wrong # 2
Questions / { shiva }
Questions Answers Category Views Company eMail




Answers / { shiva }

Question { 8403 }

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

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