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 / brijendra kumar soni(xavient)

1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.

2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of int in 64-bit jvm?

1011


Which programming language is most secure?

937


what is use of functional interface in java 8?

975


What interface is extended by awt event listeners?

1006


Can we create object of static class?

970


What is the best definition for data?

923


What is the method overriding?

1040


What do you mean by stream pipelining in java 8?

1154


Which class represents the socket that both the client and server use to communicate with each other?

973


Why can't we use static class instead of singleton?

885


What is this () in java?

973


Can I import same package/class twice?

893


How to make a non daemon thread as daemon?

1012


What are the ways in which a thread can enter the waiting state?

882


What is string array?

1014