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

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

1127


Do I need java on my computer?

981


What is Enum in Java?

1313


What is meant by design patterns?

1035


Is Java a dying language?

1086


What is the purpose of using break in each case of switch statement?

1029


What is bufferedreader in java?

1048


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1183


What’s the difference between the methods sleep() and wait()?

1012


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1086


What is the hashcode () and equals () used for?

1038


Why doesn't the java library use a randomized version of quicksort?

995


What are the properties of thread?

930


Explain the difference between string, stringbuffer and stringbuilder in java?

1005


What is the same as procedures?

988