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 a map? What are the implementations of map?

1076


Does java initialize arrays to zero?

1016


What are the approaches that you will follow for making a program very efficient?

1053


Explain about field hiding in java?

924


What is meant by inheritance and what are its advantages?

1084


Write a java program to count the number of words present in a string?

968


Is null in java?

984


What is the program development process?

954


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1058


Is class is a data type?

1063


What is the difference between logical data independence and physical data independence?

1012


What is abstraction in java?

1059


What are the rules for variable declaration?

950


Which class should you use to obtain design information about an object in java programming?

1056


How do I compare two strings in word in java?

972