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 use of put method?

954


What is thread synchronization in java?

903


What is the use of conditional statement?

986


Can we restart a dead thread in java?

989


What is the size of string?

1094


What are default methods ?

1049


What is lambda programming?

1018


Is linked list a linear or non-linear data structure?

973


What is the difference between multiple processes and multiple threads?

1214


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1258


What is a dynamic array in java?

1186


Why there are some null interface in java? What does it mean?

1128


How do I get the | symbol on my keyboard?

1084


Is final static java?

1018


What is supplier in java?

1005