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 function overloading in java?

0 Answers   Tavant Technologies, TCS, Virtusa,


Tell me the programme for this @ 1 2 @ @ @ 1 2 3 4

5 Answers   Accenture, iGate, IntoNET, Value Labs,


How you can create a radio buttion using Checkbox class?

1 Answers  


Why destructor is not used in java?

0 Answers  


What is api in java?

0 Answers  






What is method overriding in java ?

0 Answers  


AWT event listeners extends what interface?

1 Answers  


What is return type in java?

0 Answers  


Explain about main thread in java?

0 Answers  


What is static synchronization?

0 Answers  


Name the methods in mouse listeners ?

4 Answers  


What is the difference between this() and super() in java?

0 Answers  


Categories