Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is 32 bit float?

1059


Is array an object in java?

1019


Why we use multi threading instead of multiprocessing?

1122


What is multi level inheritance in java?

1079


What does i ++ mean in Java?

1000


What is data member in java?

1146


difference between byte stream class and character stream class?

4601


When is update method called?

1194


What is the nested interface?

1161


Which is illegal identifier in java?

1138


What happens if we override private method?

1028


Explain the difference between protected and default access.

1044


How do you call a reference in java?

1036


What is a parameter example?

1027


Describe different states of a thread.

1043