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

Can we change the scope of the overridden method in the subclass?

0 Answers  


What are keywords in java?

0 Answers  


What is meant by oops concept in java?

0 Answers  


Why chararray() is preferred over string to store the password?

0 Answers  


Why java is a platform independent? Explain

0 Answers  






How many methods does cloneable interface contains?

6 Answers  


Does list allow duplicates in java?

0 Answers  


Explain about field hiding in java?

0 Answers  


Explain break statement and continue statement?

3 Answers  


Why do we need variables?

0 Answers  


What is threaded programming and when is it used? : Java thread

0 Answers  


Explain about core java?

0 Answers  


Categories