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


Please Help Members By Posting Answers For Below Questions

How many types of parsers are there?

807


What does main method?

800


What are keywords in java?

786


In which order the iterator iterates over collection?

802


What is a singleton puppy?

755


Explain about oops concepts.

893


What is passing parameters in java?

763


What is anti pattern in cyber security?

766


what is a green thread? : Java thread

805


What is a linkedhashmap java?

791


What are methods?

794


Explain the purpose of garbage collection in Java?

806


How do you create a sop?

759


What is the mapping mechanism used by java to identify IDL language?

815


Explain the use of javap tool.

897