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...

what is main difference b/w abstract class and interface

Answer Posted / naga~1417

A class implementing an interface must implement all of the
methods defined in the interface, while a class extending
an abstract class need not implement any of the methods
defined in the abstract class. Additionally, a class
extending an abstract class can implement an infinite
number of it's own methods.

Abstract class does not support Multiple Inheritance .
Interface supports Multiple Inheriatnce..

The differnce is that in interface all are public but in
abstract class u can have private and protected members

Abstract class contains the method defination of the some
methods. but Interface contains only method declaration, no
defination

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sizeof a keyword in java programming?

1014


What is t in generics in java?

1001


What do you mean by a JVM?

1140


Explain differences between collection api and stream api?

1088


Explain the difference between abstract classes and interfaces in java?

1095


What is matcher in java?

932


how can i use a nonsynchronized hashtable?

2526


What is the final method?

1024


Why is the singleton pattern considered to be an anti pattern?

838


What are predefined functions?

1061


What is exception propagation?

1068


What is an off by one error in java?

896


What are alternatives to java serialization?

1052


Does the order of public and static declaration matter in main method?

1029


How is treeset implemented in java?

953