Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
this

Java Language Specification, Version Java SE 21 Edition
15.8.3. this

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.8.3

6 Documented Misconceptions

Misconception
ThisAsField
this is a special field in the object
Misconception
ThisAssignable
One can assign to this
Misconception
ThisCanBeNull
this can be null
Misconception
ThisExistsInStaticMethod
this is a local variable, also in static methods
Misconception
ThisInConstructorIsNull
In a constructor, this is null
Misconception
ThisNoExpression
The name this is not an expression

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors