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 should I use abstract classes and when should I use
interfaces?

Answer Posted / ved.b.tripathi

Interface : when you about to maintain the standard through
out the application then,blindly go with the interface.

Abstract : when you customize the behavior but still want to
maintain some standard then use abstract,because in abstract
you can have non abstract method that will be use by every
class that extend this abstract method and that class also
have to give the body of abstract methods(standard).

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between stringbuffer and string?

990


Explain different types of wrapper classes in java?

954


Explain try and catch keywords in java?

1142


Can we override protected method in java?

992


What are singleton services?

838


Define interface in java?

1023


What are the super most classes for all the streams?

2397


What is string builder?

841


What is extension method in java?

986


What happens when I use / and % with a negative numerator?

995


How concurrent hashmap works?

1121


what is difference betweem home interface and remote interface?

2564


What 4 doubled?

925


What are triggers in DB? Explain their types. How do they work?

1034


What is purpose of find feature?

1033