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

Explain about join() method?

1028


What is the difference between break and continue statements?

1099


what is heap memory?

1161


How many types of design patterns are there?

1167


What is threaded programming and when is it used? : Java thread

1113


What is the preferred size of a component in java programming?

1046


What is an exception? difference between Checked and Unchecked exception in Java

1060


What are the benefits of operations?

993


what do you mean by classloader?

1159


What is set in java?

1107


Why hashcode is used in java?

1029


What is 32 bit float?

1059


What is java jit compilers?

1061


How do you remove duplicates in java?

1073


Why collection is called framework in java?

1043