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

How does regex work?

909


What is the difference between reader/writer and inputstream/output stream?

1030


How do you escape a string?

916


What are the two types of java?

1062


write a program that list all permutations of ABCDEF in which A appears before B?

2440


Explain notify() method of object class ?

1035


What is thread safe java?

870


Can we overload destructor in java?

930


When is finally block not called?

1020


Is hashset ordered java?

1039


What does bitwise or mean?

1034


Can we extend singleton class?

901


Which collection is sorted in java?

982


What is functional interface in java?

993


According to java operator precedence, which operator is considered to be with highest precedence?

1036