Programming Misconceptions
Home
Misconceptions
Concepts
Languages
Textbooks
Contributors
About
Home
Languages
Java
jls21
Constructor Declarations
Java Language Specification, Version Java SE 21 Edition
8.8. Constructor Declarations
Read this Section of the Authoritative Specification
https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.8
2 Documented Misconceptions
ConstructorParameterIsField
Formal constructor parameters are equivalent to instance variables
NoInsideMethodCallInConstructor
It is foirbidden to call other methods on the same object while inside its constructor
Find Misconceptions by...
Concept
Programming Language
Notional Machine
Textbook
About
About This Site
Structure and Content of the Inventory
Contributors