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

What's the access scope of protected access specifier?

1094


What is method overloading with type promotion?

1335


Can you access non static variable in static context?

1096


Can we have multiple classes in single file ?

1111


What is the function of character?

1105


How do you write a conditional statement?

1008


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1151


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

1013


What is the difference between this() and super() in java?

1093


Convert Binary tree to linked list.

1141


Can a singleton class be inherited?

1010


How does regex work?

1013


What is the purpose of the file class in java programming?

1089


How to perform quicksort in java?

1187


Does treeset allow null in java?

1003