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 the difference between Abstract Class and Interface

Answer Posted / tarun jangra

1. An abstract class is a specialization whereas Interface
is a generalization. That means an abstract class is created
when only few class wants to share some methods,when you
have to create some methods to be shared by all the classes
then interface is used.

2. An abstract class can have non-abstract methods (means
methods with implementation) while all the methods in an
Interface are by default abstract.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the milky way in a void?

933


What is a numeric format?

1029


What is the difference between class forname and new?

960


Why does java have two ways to create child threads? Which way is better?

1002


Is array size fixed in java?

934


What is the role of the java.rmi.naming class?

1013


When a byte datatype is used?

2101


Difference between static and dynamic class loading.

1071


What do you mean by aggregation?

1233


Explain the difference between hashmap and hashtable in java?

901


What is protected access modifier?

970


What is the advantage of OOP in java?

1095


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

1004


What is hash in java?

917


What is unicode full form?

945