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...


What is adapter class?

Answers were Sorted based on User's Feedback



What is adapter class?..

Answer / selvi

Java Language rule are such that we must implement all the
methods of an interface even if we put them into empty
braces.i.e. we must override all the methods declared in
the interface.

But we can create our classes as subclasses of one of
the adapter classes, then we need to override only some of
the methods we need. i.e, An adapter classes provide empty
implementation of all methods declared in an EventListener
interface.

Is This Answer Correct ?    191 Yes 27 No

What is adapter class?..

Answer / niranjanravi

Adapter class provides an empty implementation of all the
methods in EventListener interface.

Is This Answer Correct ?    184 Yes 41 No

What is adapter class?..

Answer / khan

In java programming language, adapter class is used to
implement an interface having a set of dummy methods. The
developer can then further subclass the adapter class so
that he can override to the methods he requires.
Implementing an interface directly, requires to write all
the dummy methods. In general an adapter class is used to
rapidly construct your own Listener class to field events.

Is This Answer Correct ?    56 Yes 8 No

What is adapter class?..

Answer / pratik vegad

in a java programming language if you have a not all method
use but only selected method used at that time you can use
adapter class.you can use either one or all method.

Is This Answer Correct ?    28 Yes 6 No

What is adapter class?..

Answer / akki

Adapter classes are empty implementation of the methods provided by their corresponding interfaces.
if we implements the interface we have to give definition to all methods of interface.
but if we extend adapter class then we will require to define method which we gonna use in our code

Is This Answer Correct ?    20 Yes 5 No

What is adapter class?..

Answer / vykuntarao

A class which having a methods and those are having dummy
implementation (no implementation).

Is This Answer Correct ?    12 Yes 2 No

What is adapter class?..

Answer / barkha

An adapter class is a class that provides a dummy (empty)
implementation for an interface. That way someone who wants
to implement the interface but does not want or does not
know how to implement all methods, can use the adapter class
instead, and only override the methods he is interested in.

Is This Answer Correct ?    7 Yes 0 No

What is adapter class?..

Answer / hardeep

adapter class are simply the creation of event handler in
certain situation

Is This Answer Correct ?    12 Yes 9 No

What is adapter class?..

Answer / senthil

we can create our classes as subclasses of one of
the adapter classes, then we need to override only some of
the methods we need. i.e, An adapter classes provide empty
implementation of all methods declared in an EventListener
interface.

Is This Answer Correct ?    2 Yes 0 No

What is adapter class?..

Answer / rajat patel

An adapter class is an implementation class of listener interface which contain all methods implemented with empty body.For e.g WindowAdapter is an adapter of WindowListener interface. Adapter class reduce overhead on programming while working with listener interface.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is xslt in java?

0 Answers  


Which eclipse is best for java?

0 Answers  


how to print output with out using sop statements

5 Answers   UHG,


What is static keyword in java?

0 Answers  


Explain the significance of class loaders in bootstrap?

0 Answers  


Why hashset is used in java?

0 Answers  


What is use of valueof () in java?

0 Answers  


What is the USE of Null interfaces ??...if thers nothing inside these interfaces how are they used and WHy are they used ???? No 1 has given a proper description yet

1 Answers  


How the elements are organized in CardLayout?

5 Answers  


Can an integer be a string?

0 Answers  


explain the life cycle of thread?

10 Answers   CTS, NIIT, TCS,


what is the difference between the "protected and default" modifiers?

8 Answers  


Categories