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 / dhana

As it imports all the classes in java.awt package. It
doesn't import any packages inside java.awt i.e. event package.
So we should declare one more import stat in order to import
all the classes inside event package.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are arrays useful in java?

1029


Is sizeof a keyword in java programming?

1067


What's the default access specifier for variables and methods of a class?

1117


How hashmap increases its size in java?

989


What is the difference between jvm and jre? What is an interface?

1100


How do you know if a value is nan?

1059


What is the difference between the ">>" and " >>>" operators in java?

983


What is variable and its types?

1015


What is the purpose of assert keyword used in jdk1.4.x?

1066


What is an abstract method in java programming?

1042


Differentiate between nested and inner class in java.

999


Difference between character constant and string constant in java ?

1020


What is JFC?

1241


What is a constructor, constructor overloading in java?

997


What is the maximum size of list in java?

971