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

What is the use of arraylist class in java?

1087


what is the significance of listiterator in java?

1080


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

2491


Write code of any action class?

1022


How many types of java are there?

983


What does t in java mean?

1005


Describe the syntax of multiple inheritance? When do we use such an inheritance?

1097


Difference between process and thread?

1042


Can a class be final?

946


What is the format specifier?

947


Can sleep() method causes another thread to sleep?

1045


What is the significance of continue jump statement? Explain with an example.

1293


Explain runtime exceptions?

1185


Can we have try block without catch block?

1032


Define an applet in java?

1168