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 / hardyesh gupta

java.awt.*; imports the classes available in awt package,but
it does not import packages available in awt.To import the
event package available in awt package, we use the
java.awt.event.*;

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is queue in java?

1147


What are the advantages of java?

988


Difference between overriding and overloading in java?

1071


What is the instance of an object?

1194


When does an object becomes eligible for garbage collection in java?

1063


What do you understand by the term string pool?

1011


Can we cast any other type to boolean type with type casting?

958


What is the Difference between Final Class && Abstract Class?

1077


Who found java?

979


What is the difference between Grid and Gridbaglayout?

1243


What are Normalization Rules? Define Normalization?

1054


Why is java called the platform independent programming language?

1006


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

1058


What is the use of bufferedreader?

996


Can you declare a private method as static?

1151