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 we will use an Interface and Abstract class?

Answer Posted / devendra.m

Both Absstract classes and interfaces can be used when there
is a difference in subclass types.
When subclass type is totally different then implement the
interfaces.When subclass type is partially common in the
super type then extends the abstract class.Internally some
comman behaviour is there incase of abstract classes.
incase of interface we can achieve multiple inheritace.but
incase of classes we can not achieve multiple inheritace.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the base class of all exception classes?

1021


Where are local variables stored?

918


Why array is used in java?

911


What is stack example?

958


What is the technique adopted to create an immutable class?

1038


Differece between class and generic class?

980


How do you compare values in java?

980


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

961


Explain the difference between extends thread vs implements runnable in java?

1061


Is boolean a data type in java?

903


What are some alternatives to inheritance?

1047


how to prepare for IT Officers Interview in Banks

1911


What is the difference between choice and list?

1044


What is java string pool?

953


How to print nodes of a Binary tree?

2204