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

What is the difference between import java.util.date and java .util?

1003


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

1025


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

956


How to create packages in java?

890


How to solve the problem of generating the unique hash keys with hash function?

1854


What is the function of log?

946


What is difference between call by value and call by reference?

933


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1022


What is JFC?

1159


Which is dependent variable?

836


What are operators and its types?

996


Outline the major features of java.

1031


What is a byte string?

1051


How to create an interface?

1007


Is java developer a good career?

962