Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Objects

Java Language Specification, Version Java SE 21 Edition
4.3.1. Objects

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.3.1

8 Documented Misconceptions

Misconception
AddMemberAtRuntime
Set of class members can change at runtime
Misconception
AssignmentCopiesObject
Assignment copies the object
Misconception
NoStringToString
One cannot invoke toString() on a String
Misconception
NullIsObject
null is an object
Misconception
ReferenceIntoStack
References can point into the stack
Misconception
ReferenceToVariable
References can point to variables
Misconception
ToStringPrints
Invoking toString() prints something
Misconception
VariablesHoldObjects
A variable of a reference type contains a whole object

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors