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 / jc

If you want give different implementation(behaviour) to
methods which are available in the interface go for
interface.
If you want give different implementation to particular
methods(that is only some methods which are not similar to
subclass)go for abstract class.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between keyword and identifier.

977


Why we use multi threading instead of multiprocessing?

1009


What is this keyword in java?

990


How do you end a program?

1047


Can we call a non-static method from inside a static method?

962


What is the importance of finally block in exception handling?

967


Can a function return a function?

999


Write a program to print fibonacci series up to count 10.

860


hr interview how many minutes asking question

2000


What is locale in java?

980


Is string a wrapper class?

975


What is the platform?

954


Which data type is class in java?

963


Explain importance of finally block in java?

990


Write a java program that prints all the values given at command-line.

979