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...

difference between Abstract and Interface?

Answer Posted / ravi raj

Abstract Class:
---------------
1.abstract class contain the abstract and non-abstract methods
2.abstract class contain static and non-static variables
3.through abstract class we can get 0-50% abstraction in java
4. if any class declared as a abstract i.e abstract class
5. we wont create instance for this class.
6. we cont make final for this class.

Interface :
-----------

1. Interface contains only abstracted methods.
2. it allows only static and final variables.
3. interface is by default abstracted and public.
4. through interface we get 100% abstraction.
5. we can solve the multiple threading in interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the argument type of a programs main() method?

1064


What state does a thread enter when it terminates its processing?

1018


Name the class that is used to bind the server object with RMI Registry?

2112


Can I map more than one table in a cmp?

1031


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

1121


What are local interfaces? Describe.

1162


To what value is a variable of the string type automatically initialized?

1081


What restrictions are placed on the values of each case of a switch statement?

957


What is the difference between the font and fontmetrics classes?

1083


Which javutil classes and interfaces support event handling?

994


Is infobus easy to use?

989


Can I use javascript to submit a form?

1099


Write a singleton program?

992


How would you detect a keypress in a jcombobox?

1088


What is meant by method chaining?

1091