Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

when to use abstract class and when to use interface?

Answer Posted / ravikiran

abstract class is used if you are willing to restrict the
creation of an instance.
interface is used if you are willing to write different
functionalities in different implementations.

Is This Answer Correct ?    34 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string immutability?

1120


Explain throw keyword in java?

1051


What is the difference between array and array list in java?

1241


Describe different states of a thread.

1008


Can we overload the main() method?

1051


What is the use of default method in interface in java?

1014


What are desktop procedures?

1052


What is nullpointerexception in java?

1166


What are the restrictions imposed by a Security Manager on Applets?.

2618


Can we sort a map in java?

1056


How will you get the platform dependent values like line separator, path separator, etc., ?

1032


How can I debug the Java security exceptions and AccessControlExceptions?

1159


What is boolean keyword in java?

1135


Why is singleton not thread safe?

1060


What are the characteristics of Final,Finally and Finalize keywords.

1180