aspose file tools*
The moose likes Performance and the fly likes abstract class or interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "abstract class or interface" Watch "abstract class or interface" New topic
Author

abstract class or interface

rohit rusty
Greenhorn

Joined: Jun 27, 2011
Posts: 15
in one case if we are using absttract class and in the other if we are using interface. which one shoul take lesser time given both the programs are performing the similar operation?
- regards
Rohit
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12821
    
    5
In spite of the fact that it makes no difference, you should not be worrying about performance when making this decision - instead, worry about clarity and maintainability.

"Premature optimization is the root of all evil"

Bill
samir vasani
Ranch Hand

Joined: Nov 24, 2010
Posts: 62
Performance wise interface is slower then abstract class...
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12821
    
    5
Performance wise interface is slower then abstract class...


Really I would really love to see documentation that backs up this utterly astonishing statement.

Or, if no documentation is available, where you got the idea.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract class or interface