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

Answers were Sorted based on User's Feedback



when to for abstract class and when to go for interface..

Answer / sumit kumar

if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.

Is This Answer Correct ?    12 Yes 2 No

when to for abstract class and when to go for interface..

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

More Core Java Interview Questions

How would overload a function based on return type?

0 Answers   Genpact,


Where local and global variables are stored?

0 Answers  


Why packages are used?

5 Answers  


what is the meaning of java.lang and java.util

6 Answers  


What is the relationship difference the canvas class and the graphics class?

0 Answers  


What is stack class in java?

0 Answers  


what is meant by package in java?

5 Answers  


What is a static class in java?

0 Answers  


Explain scope or life time of local variables in java?

0 Answers  


how many access specifiers are available in java

11 Answers  


Why are global variables used?

0 Answers  


Name two subclasses of the TextComponent class?

2 Answers  


Categories