Define interface?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is join () in java?

533


How do you avoid global variables?

545


What is the difference between iterator and list iterator?

537


What is the meaning of I ++ in java?

610


What are the two main uses of volatile in Java?

607






Is java an ide?

530


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

593


What does flagged out mean?

576


How can we access some class in another class in java?

555


How do you input a string in java?

505


What is dynamic array in java?

531


Explain the public class modifier?

507


What is percentage in java?

577


How can we break singleton in java?

528


Explain what pure virtual function is?

603