What is the use of an interface?

Answer Posted / muthusenthil

Interface is mearly a specification, its a design flexible
it can be used to model multiple inheritance normally java
wont supports.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a switch statement and an if statement?

745


What are the differences between include directive and include action?

758


How do you convert an int to a string in java?

779


Can this keyword be used to refer static members?

773


What is the difference between member variables initialization and assignment in a constructor?

892


What is an example of declaration?

748


What is polymorphism in java? What are the kinds of polymorphism?

792


Are maps ordered java?

694


What is static block?

783


What is parameter example?

764


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

714


What is native code?

720


Why you should not use singleton?

741


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

766


What are the core java topics?

777