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

What is the difference between declaration and definition in java?

0 Answers  


What are the types of strings?

0 Answers  


Name the runtime exceptions that occurs frequently?

4 Answers  


Definition for connection pooling?

3 Answers  


What is the purpose class.forname method?

0 Answers  


Write the code for Palindrome ?

2 Answers   Bally Technologies,


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

0 Answers   Aricent,


How do you remove duplicates in java?

0 Answers  


How to sort an array in java without using sort method?

0 Answers  


difference between arraylist and linkedlist otherthan performance

2 Answers   L&T,


What is primitive data type in java?

0 Answers  


What are functions in java?

0 Answers  


Categories