answersLogoWhite

0

What are adapter classes in java?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are adapter classes in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are sealed classes in java?

Final classes are sealed classes in java I guess.


What is Difference between java and core java?

Java or Java SE comes with the standard library, with all the crazy classes to make life easy. Java Core does not come with most of these classes, so that it is a lot smaller.


What is a collection of related classes called in java?

a package


Why do you extend classes in java?

We use the classes in java to reuse their coding for the child classes.So as to save our time and development overhead.


How many classes should be included in each java file?

You can only have one non-inner public classes per java file and that class name must match the filename. The java file can also have any number of inner classes and anonymous classes.


How many pre-built or predefined classes are there in JAVA?

In java 1.1 version 250 classes are there java 1.2 version 500 classes are there i don't about other versions. but i want to know other version classes also. please post any body known these other version classes list....


What is global variable in java?

A local class is declared locally within a block of Java code.You can even have classes declared inside a method. such classes are called local classes.


Why we write java program using classes?

Classes are well organised functions in java which help discriminate between two different functions.


How many types of classes are found in java?

1.Outer Classes 2. Inner Classes


What is the meaning of deplyoment IN JAVA?

Deployment is the process of copying the compiled Java classes to a server or client. Once deployed, the server is able to run those classes (as in Java servlets), or serve those files to clients (as in Java applets), or be executed as programs (as in Java desktop applications).


Is it possible while developing any software by using java can you manage database?

Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.Yes. In Java this is done through the JDBC classes.


The top most class in java?

All classes in java must inherit from the Object class