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 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 different access modifiers available in java?

1044


what r advatages of websphere? & how to deploy?

2196


What are methods and how are they defined?

1212


Why we used break and continue statement in java?

1145


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

984


What is a line separator in java?

980


If a variable is declared as private, where may the variable be accessed?

1061


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1106


What are the concepts of 'OOPS'?

1075


Can an interface implement another interface?

1036


Difference between Linked list and Queue?

1029


What is console based application in java?

1041


Can an unreferenced object be referenced again?

1193


What is command line argument in java?

1151


What is r in java?

1060