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 / ravi

1.A programmer creates abstract class when there are some
common features shared by all the objects.
A programmer writes an interface when all the features
should be implemented differently for different objects.

2.When an abstract class is written the programmer should
provide sub classes to it.
A programmer writes an interface when he wants to leave
implemntation classes to third party vendors.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have any code between try and finally blocks?

1021


What is the final keyword?

987


Can we declare the static variables and methods in an abstract class?

990


How many types of equations are there?

1018


What is a parameter in a function?

997


How do you write a conditional statement?

959


How to change value in arraylist java?

1179


What is the reflection?

1008


Can we nested try statements in java?

1103


When throws keyword is used?

1002


How can we achieve thread safety in java?

1151


How many decimal digits is 64 bit?

932


Can each java object keep track of all the threads that want to exclusively access it?

952


Is alive and join method in java?

1176


What is mean by exception?

1032