Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between abstract class and interface

 
siva prakashmahendran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one please explain me
the difference between abstract class and interface in java

which one is best for designing the web application wheather abstract class or interface ?


thanks in advance
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this question has been answered plenty of times. Do a search first next time.

link one
link two
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't forget http://faq.javaranch.com/java/InterfaceVsAbstractClass
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And that "best" depends on a wide variety of factors.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic