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

Tell us something about set interface.

952


Explain the difference between protected and default access.

945


Which command from the jdk compiles a java program?

911


How do you do exponents in java?

978


what is encapsulation in java? Explain

1045


What is the default value of an object reference declared as an instance variable?

1033


What is object english?

1001


What is object-oriented paradigm?

1005


What is double in java?

924


What are encapsulation, inheritance and polymorphism?

941


What is the access scope of protected access specifier?

933


Why are parameters used in functions?

939


What is a numeric string?

955


Which methods cannot be overridden in java?

922


How do you check if a string contains only numeric digits?

1065