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 glasgow?

1107


What is the difference between ear, jar and war file?

1184


Where can I find seam examples and documentation?

1146


Difference between loadclass and class.forname?

1094


What are the call back methods in entity bean?

1112


When is the best time to validate input?

1147


What is ripple effect?

1124


What is the relationship between local interfaces and container-managed relationships?

1183


What is a clone?

1118


Can I import same package/class twice? Will the jvm load the package twice at runtime?

1190


Describe responsibilities of Activator?

2351


What is Stream Tokenizer?

2321


What is the relation between the infobus and rmi?

1063


Define prototype?

1121


Explain the difference between object state and behavior?

1114