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

Does java trim remove newline?

989


Which are different kinds of source code?

1110


What is advantage of java?

1024


Can we declare a class as static?

1097


How the metacharacters are different from the ordinary characters?

1021


Where is singleton pattern used?

993


Outline the major features of java.

1076


What is formatted output?

954


Can you start a thread twice in Java?

1117


What is the difference between serializable and externalizable interfaces?

1099


What is the relationship between clipping and repainting under awt?

1148


Can inner class be public in java?

1015


What if constructor is protected in java?

1120


Why are global variables used?

1018


What is the symbol for line break?

1097