What is interface and its use?

Answer Posted / koteswararao konikineni

interface is nothing but the collection of abstract methods
which are not implemented those are implemented in class
assume interface act as a client and the class act as a
vendor
we can not create object to interface we have to create
abstract variable only

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tree in java?

656


Is upper case in java?

716


Why inputstreamreader is used in java?

743


What is the primitive type short?

779


What is ++ a in java?

741


what is predefined function in java?

721


Explain access modifiers in java.

759


What is a prefix function.write down a code to compute prefix function.

736


Can we force the garbage collection to run?

696


What do you meant by active and passive objects?

789


What do the thread?class methods run() and start() do?

762


When the constructor of a class is invoked?

754


What is string args [] in java?

745


Can you have two constructors in java?

662


What is classes in java?

676