Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Class Members

Java Language Specification, Version Java SE 21 Edition
8.2. Class Members

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.2

5 Documented Misconceptions

Misconception
AddMemberAtRuntime
Set of class members can change at runtime
Misconception
NoFieldInheritance
An object contains only the fields declared in its class
Misconception
NoMethodInheritance
Subclasses inherit fields but not methods
Misconception
PrivateAccessibleInSubclass
Private members of a superclass are accessible from a subclass
Misconception
ReferringToRecursiveStructureMakesRecursive
A class referring to a recursive data structure is (indirectly) part of that recursion as well

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors