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 j2se

3 Answers  


what is the swingutilities.invokelater(runnable) method for? : Java thread

0 Answers  


What is the use of callablestatement?

0 Answers  


What is finalize() function in java?

0 Answers  


What defines function?

0 Answers  


What does sprintf return?

0 Answers  


List interface?

2 Answers  


How can we find the actual size of an object on the heap?

0 Answers  


How does split work in java?

0 Answers  


What is the immediate superclass of the Dialog class?

2 Answers  


Which sorting is used in arrays sort in java?

0 Answers  


how can you say that java is independ language

2 Answers   TCS, Wipro,


Categories