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
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 ?    1 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 ?    1 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 a void return type?  2
Which class is the immediate superclass of the Container class?  1
how to handle http request in struts Polaris2
What is the return type of read()?  2
Difference between String and String Buffer?  3
How will you create the class for the following scenario? Employees under one employee? Bally-Technologies2
Java violates few objected oriented concepts. Can you explain in what way? Ness-Technologies3
What are null interfaces in JAVA ? and give me some examples?  3
What is lazy activation? CMC1
How can be define MARKER interfce in java  1
Is multiple inheritance allowed in Java? Why ?  5
how to convert mm/dd/yy to dd/mm/yy using collections in java. Bosch2
Can we declare variables inside a method as Final Variables?  3
what is a transient variable?  4
public class AboutStrings{ public static void main(String args[]){ String s1="hello"; String s2="hel"; String s3="lo"; String s4=s2+s3; //to know the hash codes of s1,s4. System.out.println(s1.hashCode()); System.out.println(s4.hashCode()); // these two s1 and s4 are having same hashcodes. if(s1==s4){ System.out.println("s1 and s4 are same."); }else System.out.println("s1 and s4 are not same."); } } Somebody told me that, == operator compares references of the objects. In the above example even though s1 and s4 are refering to same object(having same hash codes), it is printing s1 and s4 are not same. Can anybody explain in detail why it is behaving like this? Thanks in Advance RavuriVinod TCS3
In what circumstances, compiler will supply a default constructor for a class?  4
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p? HCL5
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?  5
In Java why we write public static void main(String args[]) why not main()? TCS12
How does a try statement determine which catch clause should be used to handle an exception?  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 interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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