ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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.*; ?
 Question Submitted By :: Shivakrishna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    4 Yes 0 No
Dhana
 
  Re: 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
# 2
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 ?    9 Yes 0 No
Shiva
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the Set interface?  2
Name the types of 'priority'?  2
Hi Friends, can u give me Real Time example for interface and abstract class.(With Banking Example)  1
What is meant by Java interpreter?  2
Can multiple catch statements be used in exceptions ? Wipro4
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.*; ?  2
What is the range of the short datatype?  2
What is a Java package and how is it used?  2
What is the format of Inner Class after it compiled?  1
real time example for deadlock,starvation,livelock  4
who was the founder of java HCL8
What is the functionality of Webserver?  2
what is the difference between HashMap And HashTable? Hexaware3
how to handle exceptions in core applications? CSS2
what is the Use of throws exception?  2
how to write a program for chat function using core java Satyam1
When garbage collector invokes object?s finalize() method?  3
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access? Verizon1
basic difference b/w ALL types of JDBC driver. Systematix1
Which class has no duplicate elements?  8
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com