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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
adapter class ?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: adapter class ?
Answer
# 1
An adapter class provides an empty implementation of all 
methods in an event listener interface.Adapter classes are 
useful when you want to receive and process only some of 
the events that are handled by a particular event listener 
interface.you can define a new class to act lisener by 
extending one of the adapter classes and implementing onlu 
those events in which you are interested.
   For ex: the MouseMotionListenerAdapter class has two 
methods,mouseDragged() and mouseMoved(). The signatures of 
these empty are exactly as defined in the 
MouseMotionListener interface. If you are interested in 
onlu mouse drag events,that you could simply extend 
MouseMotionAdapter and implement mouseDragged().
 
Is This Answer Correct ?    1 Yes 0 No
Janet
 
  Re: adapter class ?
Answer
# 2
adapter class provides empty implementation for
eventlistener interface
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference between @include page and @include file  2
To set the position and size of a component, which methods are used?  2
Program to find greatest prime number in n numbers? Huawei3
what is a transient variable?  4
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet? Systematix1
why java is not supporting multiple inheritence?  3
what Data encapsulation in java?  4
In which way does a Primitive data type is passed ? Sun-Microsystems2
What is deadlock and how to avoid this?  2
What is the basically use of finally while we know it is always executed but why? TCS4
what is the difference between sleep() and Wait()? Accenture4
What is the minimum and maximum length of an identifier? TCS6
what is the use of datasource in core java? Satyam2
What is the difference between throw and throws? Cap-Gemini2
What is meant by JVM ?  3
What are Inner classes?  3
how to connect one jsp page to another jsp page???? Symphony4
what is the difference between HashMap and Hashtable Value-Labs8
how cani read a command line argument?(usingfile object).  3
Explain Connection Pooling?  3
 
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