File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Abstract Class vs Interface" Watch "Abstract Class vs Interface" New topic

Abstract Class vs Interface

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
What's the main difference between an abstract class and an interface?
Thanx in advance,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

Visu, that is one of the most frequently asked questions on the forums here. If you do a search, you find about 200 topics with exactly the same question:

interface vs abstract
Abstract classes and Interfaces
What's the difference between Interface and Abstract class?
when to use abstract class and interface
diff b/w abstract classes and Interfaces
abstract and Interface
Abstract and Interface
what is diff betwn Interface and Abstract class

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
And if you follow the link to the FAQ in Jesper's sig, you will also find an entry on exactly this topic.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Abstract Class vs Interface
jQuery in Action, 3rd edition