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 the full form of jpeg?

0 Answers  


What is a default method?

0 Answers  


What is a key in java?

0 Answers  


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

0 Answers  


How are destructors defined in java?

0 Answers  


methods in Applet?

1 Answers  


How many bits does a boolean take?

1 Answers  


Why is a constant variable important?

0 Answers  


What is static variable and static method?

32 Answers   Accenture, Prolific, Prolifics, TCS, TNH,


What is compiler and what its output.

0 Answers   Cognizant,


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

0 Answers   RBS, TCS,


What is the purpose of the system class in java programming?

0 Answers  


Categories