when to use abstract class and when to use interface?
Answer Posted / brijendra kumar soni(xavient)
1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.
2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is meant by HQL?
What is unicode in java?
What is the maximum size of arraylist in java?
What are peerless components in java programming?
What is binary tree in java?
Who is the owner of java?
Give us the name of the list layoutmanagers in java?
Describe what happens when an object is created in java ?
What are actual parameters?
What is a finally block? Is there a case when finally will not execute?
Difference between abstract and concrete class ?
What is static in java?
Name component subclasses that support painting in java programming?
Does unicode support all languages?
How can we access some class in another class in java?