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
What is method with example?
What comes to mind when someone mentions a shallow copy in java?
Can you start a thread twice in Java?
When is update method called?
What is reverse function?
What means public static?
Which access specifier can be used with class ?
Why is it called boolean?
How do you declare a variable?
What does this () mean in java?
What is a data structure java?
What is main in java?
How does the garbage collector works in java?
Explain about the security aspect of java?
How we can declare a static variable?