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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 classes?
 Question Submitted By :: Sushil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Adapter classes?
Answer
# 1
The Java AWT provides a number of adapter classes for the
different EventListener interfaces. These adapter classes
implements the corresponding interfaces with a series of
do-nothing methods. 

By subclassing the respective Adapter rather than
implementing EventListener interfaces directly, one can
avoid having to write the methods that are not actually
needed. Only those methods can be overridden that are
planned to be actually implemented.
 
Is This Answer Correct ?    0 Yes 0 No
Ranganathkini
 
  Re: Adapter classes?
Answer
# 2
By using Adapter class we can implement the interface's 
required methods.for ex. in an interface there are 100's of 
methods,but we want to implement only two methods.By using 
Adapter class we can implement those two methods and rest 
are defined by null body.
 
Is This Answer Correct ?    0 Yes 0 No
A Sriniva Rao
 
 
 
  Re: Adapter classes?
Answer
# 3
Adapter classes are the null implementation for the methods 
od container class
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the purpose of finalization?  3
why the primitive data type have classes?  2
Can you have an inner class inside a method and what variables can you access?  1
Can we access a database using applets?  2
Difference between the paint() and repaint() methods?  1
By what default value is an object reference declared as an instance variable? Wipro1
Why do inner class cannot have static declaration except static nested class? Wipro1
What are the two major components of JDBC? Mind-Tree2
Is 'null' a keyword?  2
What are Advatages of Overloading and Overridding. TCS3
What is yielding and sleeping? how they different?  2
y cant i declare method like public final static show()  2
What is parameter tag and what is its use?  1
Why cant we define System.out.println() inside a class directly?  3
why ,we are using jsp and html.which one is better? Photon1
Does Java support multiple Inheritance?  4
How can a class be accessed, If no access modifiers are declared?  2
How many statements can be created with one connection in jdbc? Polaris2
What is the difference between a Window and a Frame?  1
diff between abstract methods and interfaces with programing (code) example?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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