when to for abstract class and when to go for interface

Answer Posted / chandra d

If your class design has multiple implementations then we
can go for Interface.
if your class design is having some specific features and
some other features may change .. then we can go for
Abstract class

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four pillars of java?

614


What is arrays fill in java?

547


What is a numeric literal?

534


When do I need to use reflection feature in java?

627


What was java originally called?

518






What is double data type?

541


Outline the major features of java.

571


Describe what a thread-local variable is in java?

575


What all methods are used to prevent thread execution ?

560


How many bytes is string in java?

618


What is the use of a conditional inclusion statement in Java ?

594


What is string data type?

559


What are the 4 types of research methods?

518


Where is java located?

505


What is local declaration?

495