Define interface?

Answer Posted / neema

Java doesnot support multiple inheritance.
interface is a way to achieve multiple inheritance in java,
an interface contains only abstract methods and final
variables.
the class that implements the interface should define the
code for the methods

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is off heap memory?

550


Is break statement can be used as labels in java?

508


Which is better stringbuilder or stringbuffer?

529


What is a treeset in java?

547


List the three steps for creating an object for a class?

517






How do you achieve singleton?

533


What is the list interface in java programming?

582


What is a singleton class in Java?

506


What are different access specifiers in java?

567


how many types of Inheritance?

653


What is import java util arraylist?

659


how come we know the object is no more used in the class?

5433


Explain about static nested classes in java?

611


What is a functional interface?

549


How many types of threads are there in java?

504