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 empty list java?

917


What are the important features of Java 10 release?

983


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9204


What are 3 boolean operators?

999


Explain implementation and how is it different from conversion?

1078


What is the effect of keeping a constructor private?

946


What is a double?

1095


What is the purpose of checked and unchecked exceptions in JAVA?

1007


What is jpa specification?

964


Why are parameters used in functions?

1013


Does string isempty check for null?

1014


What is lambda expression in java?

1034


Is 9 a prime number?

885


What are extraneous variables examples?

1094


What is int lol?

1136