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 abstraction and interface?

Answer Posted / kavitha

Abstract classes define methods and interfaces declare
methods.
Interfaces declare methods without implementation.
Abstract classes are very much useful when there is a same
functionality across various classes.
Interfaces are useful for classes which varies in
functionality and with the same method signature.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multithreading and its advantages?

1125


What is an anonymous class in java?

1160


In Java list the methods that can be overridden?

1049


Can we use a switch statement with strings?

1104


Why does java does not support multiple inheritance? Explain

1034


How do you check if two given string are anagrams?

1001


Is this valid in java ? Can we instantiate interface in java?

1021


Which is a valid identifier?

1293


What is java’s garbage collected heap?

1032


Explain the difference between abstract class and interface in java?

1040


What are the changes in java.io in java 8 ?

1079


What is the syntax and characteristics of a lambda expression?

1093


What flag up means?

1072


What is a byte string?

1165


What is hashing in java?

1094