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 do you mean by exception handling in Java?

1297


What is the access scope of a protected method?

1033


Difference between this() and super() ?

1117


Write code to implement bubble sort in java?

999


Write a program to print count of empty strings in java 8?

1006


Why we override equals() method?

1040


Can we serialize static variables in java?

1097


What is a classloader in java?

1023


What is get () in java?

1055


What are pass by reference and pass by value?

988


Are arrays passed by reference in java?

915


What is codebase?

1006


How to use Media tracker Class.

1129


what is recursion in java

1179


What is the static method?

1078