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

What is the purpose of interface?

1044


How do you generate random numbers in java?

1057


What are examples of modifiers?

1221


What is the maximum size of byte array in java?

1067


What is the final class modifier?

1082


What is console based application in java?

1083


What are the java ide’s?

1090


How do I get the | symbol on my keyboard?

1122


What is meant by object oriented programming – oop?

1045


List the interfaces which extends collection interface?

996


How do you identify independent and dependent variables?

1069


If two threads have same priority which thread will be executed first ?

1568


what do you mean by stream pipelining in java 8? Explain

1076


What are checked exceptions?

1077


What happens when main () method is declared as private?

1183