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 private static in java?

569


What are packages in java?

553


What is basic syntax?

539


What is meant by class loader? How many types are there? When will we use them?

497


What is instance means in java?

557






Can we override constructor in java?

566


What is ctrl m character?

510


What is the difference between conversation & casting?

564


How can the checkbox class be used to create a radio button?

501


What is concurrent hashmap and its features?

511


What are the advantages of defining packages in java?

502


Is boolean a wrapper class in java?

594


What is the size of integer?

579


Can we declare a class as abstract without having any abstract method?

547


What is an example of a conditional statement?

558