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 a for loop in java?

0 Answers  


what is default constructor and parameterised constructor with example?

1 Answers   KPIT,


what is finalmethod & final variable with example?

6 Answers   HP,


Difference between linkedlist and arraylist.

0 Answers  


what do you meant by Platform-Independent?

6 Answers   Persistent,






What is communist flag?

0 Answers  


What is arrays sort in java?

0 Answers  


What is bom encoding?

0 Answers  


What are the types of statement? explain

1 Answers   SysBiz,


Can a source file contain more than one class declaration?

0 Answers  


What is methods and methodology?

0 Answers  


Where are variables stored?

0 Answers  


Categories