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 do you understand by access specifiers in Java?

586


What is the meaning of nullable?

576


What is a locale?

696


What is constant in programming?

557


Explain the importance of import keyword in java?

526






Is 64bit faster than 32 bit?

581


What is a 16 bit word?

567


What are the differences between forwarding () method and sendredirect() methods?

622


What is the default value of float and double datatype in java?

534


What does flagged out mean?

576


Does hashset allow duplicates in java?

582


What is object english?

585


What access modifiers can be used for variables?

589


What are different access specifiers in java?

567


How to sort array of 0 and 1 in java?

543