Define interface?

Answers were Sorted based on User's Feedback



Define interface?..

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

Define interface?..

Answer / ravikiran(aptech mumbai)

interface is the one which contains all the methods as
abstract.If we wish to do a complete new functionality
implementation in the future we have to make use of interface

Is This Answer Correct ?    5 Yes 0 No

Define interface?..

Answer / dev yadav

interface is a collection of abstract methods ...we also implement multiple inheritence in java with the help of interface....

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is final modifier?

0 Answers  


What is an immutable class?

0 Answers  


Can we sort array in java?

0 Answers  


Is this valid in java ? Can we instantiate interface in java?

0 Answers  


In java how do we copy objects?

0 Answers  






Differentiate between overriding and overloading cases?

0 Answers   Amdocs,


JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu

9 Answers   Huawei,


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

0 Answers  


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

0 Answers  


why java not supproting multiple inheritance?

5 Answers  


What is append function?

0 Answers  


What does function identity () do?

0 Answers  


Categories