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

why operator overloading is removed in java?

1 Answers  


What is a void method?

0 Answers  


If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?

5 Answers   KPIT,


What is a method in coding?

0 Answers  


what are ER diagrams?

2 Answers  


Can you declare a static variable in a method?

7 Answers  


Why doesn't the java library use a randomized version of quicksort?

0 Answers  


What is reflexive association?

1 Answers   Infogain,


what are the diffrences between interface and abstract class?

4 Answers  


How do you input a string in java?

0 Answers  


Name some classes present in java.util.regex package.

0 Answers  


Keywords in Exceptions?

2 Answers  


Categories