what is main purpose of interface?
Answer Posted / saikatk
There is no multiple inheritance in java,we can't extends
more than one class at a time,so interface is a way to
implement multiple inheritance in java, and from design
point view when we have some class specific behaviours we
can put interface as a base of the classes.
Is This Answer Correct ? | 44 Yes | 4 No |
Post New Answer View All Answers
placement papaers of spring computing technology
Explain the term virtual machine?
Can you have two constructors in java?
What is the collections api?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What 4 doubled?
What is the locale class in java programming?
What is mvc in java?
What is the purpose of garbage collection in java, and when is it used?
What is float in java?
What do you mean by constant time complexity?
What state does a thread enter when it terminates its processing in java programming?
What environment variables are required to be set on a machine in order to run Java programs?
What is nan in java?
What are the problems faced by java programmers who don't use layout managers?