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
How many types of parsers are there?
What does main method?
What are keywords in java?
In which order the iterator iterates over collection?
What is a singleton puppy?
Explain about oops concepts.
What is passing parameters in java?
What is anti pattern in cyber security?
what is a green thread? : Java thread
What is a linkedhashmap java?
What are methods?
Explain the purpose of garbage collection in Java?
How do you create a sop?
What is the mapping mechanism used by java to identify IDL language?
Explain the use of javap tool.