File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
i want answer
Joined: Jul 22, 2008
Jul 28, 2008 04:55:00
what the difference between interface and abstract
Joined: Jun 19, 2008
Jul 28, 2008 05:16:00
One - This forum ( ORM ) is not the correct one to post this question
Two - demanding answers will get you nowhere
However to get trhe ball rolling and also to induce much more knowledgable people to correct me - will give it a shot .
The simplest of reasons is related to multiple inheritance
( and I am sure you are looking for more than this )
Another difference I can think of is if you have some default generic behaviour to implement - go for an abstract class - since interface will not allow implementations
One more - ( this is my understanding ) - if the system changes a lot I think its better to have an abstract class as supertype where - you can add a "new" method with some default implementation .
If this were to be an interface - it would be a maintenance nightmare to add a new method .
[ July 28, 2008: Message edited by: satish bodas ]
Joined: Apr 14, 2004
Jul 28, 2008 05:17:00
Please try to
before posting. And please
. You could also probably benefit from learning to
I'm going to move this to a more appropriate place.
Joined: Sep 11, 2007
Jul 29, 2008 01:54:00
ask on javaranch.
Millions saw the apple fall, but Newton asked why.
rocket mass heater
subject: i want answer
Real Time difference between abstract and interface
Abstract and Interface
difference between abstract class and an interface
Core Java Releated Quesstion
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015