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
Difference between keyword and identifier.
How does list work in java?
What is the access scope of a protected method?
What is a flag and how does it work?
What is maximum size of arraylist in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is difference between overloading and overriding in java?
What do you mean by global variable?
Which are the two subclasses under exception class?
What is the this keyword?
Where are the local variables stored?
What is %02d?
What is variable and constant explain with example?
What is the purpose of methodology?
What are the difference between composition and inheritance in java?