Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Actually static variables exist only on the class, however not on an instance of it. Commented Jan 29, 2018 at 15:07
  • 1
    @HimBromBeere: If by that you mean that they can only be accessed through the class, not an instance of the class, then you are correct, but I also never claimed differently. They do not, in fact exist on the class though. As the OP rightly ascertained, the class is not an actual entity. It's not present in memory, etc., so it's not actually accurate to say the statics exist on the class, since the class itself doesn't "exist". Commented Jan 29, 2018 at 15:11