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 difference between Interface and abstract class

Answer Posted / naveen

Interface is a specification it tells a class has what to do.
It is purely abstract class it contains abstract methods and final static variables.
Generally begining of the project PM or TL are providing the Interfaces, developers are implementing the Interfaces.

Abstract class

Abstract class is a mediator between Interface and Class , any common code is their that code written in Abstract class and then extend the Abstract class. Abstract class containing abstract and concreate methods.
Abstract class are used in Designing level.If take java predifined class we understand easily.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the equal sign?

1051


Why method overriding is used?

1040


Why java is call by value?

992


How do you test a method for an exception using junit?

1157


How would you format a date in java? I.e. In the ddmmyyy format?

1333


What is substring 1 in java?

1088


What are the differences between getting and load method?

1099


Describe how to implement singleton design pattern in struts.

964


What kind of variables a class can consist of?

1058


What is the difference between numeric and integer?

963


can java object be locked down for exclusive use by a given thread? : Java thread

1048


Why singleton class is used in java?

1092


What is the difference between error and an exception?

1083


What is == and === in javascript?

1013


Does hashset allow duplicates in java?

1070