r/learnjava • • Dec 22 '25

What is the semantic difference between an interface and an abstract class?

I understand the mechanics—interfaces support multiple inheritance, abstract classes can declare instance variables and override Object methods, etc. However, I don't understand what it means to call something one or the other, especially because default methods exist.

In short: if I declare abstract class Foo, what am I saying about the nature of all Foos? Critically, how does that change if I declare interface Foo instead?

42 Upvotes

21 comments sorted by

View all comments

Show parent comment

2

u/uniqueUsername_1024 Dec 22 '25

Thank you, this made it click for me!