Answer Posted / navinice
We use Interfaces in java because JAVA Doesn't support
multiple inheritance. Thats why no any class can extend more
than one class in JAVA.. But through Interfaces we can
implement more than one interfaces and use there methods in
base class.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is byte code and why is it important to java’s use for internet programming?
Describe method overriding
What is map java?
How is tree Mirroring implemented?
What are data structures in java?
What is diamond operator in java?
What is multi-catch block in java?
what is bmg file and how to create that files?what will it contailn?
What’s the difference between callable and runnable?
Can we overload final method in java?
Why Java doesn’t support multiple inheritance?
Can we override constructors?
Explain what are final variable in java?
Give any two differences between C++ and java.
Explain about method local inner classes or local inner classes in java?