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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we clone singleton object in java?

1087


What is the size of int in 64-bit jvm?

1179


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1072


Which collections are thread safe in java?

961


What are the differences between include directive and include action?

1285


When is the garbage collection used in Java?

1262


Write a program to print 15 random numbers using foreach of java 8?

984


What is the use of string and stringbuffer?

1051


Is java jre still free?

1006


Is java 11 paid version?

1049


Can we override data members in java?

1197


Can we increase size of array?

1070


what is singleton in java?

1111


Is object a data type?

1022


What is data type in computer?

1004