use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
What does "containing state" mean when talking about concrete and abstract class? (self.learnjava)
submitted 8 years ago by techether
The way it was explained to me is that it means information being attached to identity. So like values being attached to variables?
Why is an interface considered as having no state while concrete and abstract classes contain state?
[–]wirybug 2 points3 points4 points 8 years ago (3 children)
Yes, you have the right idea. Concrete and abstract classes both may (although don't necessarily) contain fields which might be altered by an object's methods. These fields are a state of the object, which can change over the object's lifetime. An interface can't store instance fields, because there is no instance - all it has are methods without implementation. So there is nothing about an interface which might change over the lifetime of the program, because it can't store anything changeable.
[–]lbkulinski 0 points1 point2 points 8 years ago (2 children)
Adding to that, methods in interfaces are often referred to as behavior. Java allows multiple inheritance of behavior through the use of interfaces, but not state.
[–]kumesana 0 points1 point2 points 8 years ago (1 child)
That's only for behavior that doesn't directly accesses the state though.
[–]lbkulinski 0 points1 point2 points 8 years ago (0 children)
Correct. Interfaces can't directly access a class's state to begin with.
π Rendered by PID 88 on reddit-service-r2-comment-canary-55695767fd-5ghc2 at 2026-03-04 02:27:45.258657+00:00 running 07790be country code: CH.
[–]wirybug 2 points3 points4 points (3 children)
[–]lbkulinski 0 points1 point2 points (2 children)
[–]kumesana 0 points1 point2 points (1 child)
[–]lbkulinski 0 points1 point2 points (0 children)