This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes abstract class vs interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "abstract class vs interface " Watch "abstract class vs interface " New topic
Author

abstract class vs interface

sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
Million Dollar question , when one should prefer for abstract class over interface or vice versa??

I am not getting satisfying answer for this question
Please help !
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7032
    
  16

manu united wrote:Million Dollar question , when one should prefer for abstract class over interface or vice versa??
I am not getting satisfying answer for this question
Please help !

Please KeepItDown (←click).

Million Dollar answer: when it makes sense.

And sometimes you will want both (or neither).

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

First, please don't use so much bold. It's like shouting, and it makes your post unpleasant to read.

As for your question, please SearchFirst(←click) and come back with more specific questions after you've done some research if some particular point is not clear. The question has been discussed to death here and on other sites, and has plenty of coverage in tutorials, blogs, and whatnot. There's a good starting point right on this site: https://www.coderanch.com/how-to/java/InterfaceVsAbstractClass
sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
thank you for sharing the link.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13869
    
  10

So, did Jeff now win a million dollars?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
hehehe virtually he has won !!

Sujay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract class vs interface
 
Similar Threads
Can a class be declared inside a interface?
Java Question on Interface and classes
Please tell me the difference between these two code example
when to use abstract ?
Inheritance