Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Class Instance Creation Expressions

Java Language Specification, Version Java SE 21 Edition
15.9. Class Instance Creation Expressions

Read this Section of the Authoritative Specification

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

4 Documented Misconceptions

Misconception
AddMemberAtRuntime
Set of class members can change at runtime
Misconception
ConstructorAllocates
The constructor allocates the object
Misconception
ConstructorWithoutNew
One can write the constructor name, without new, to instantiate a class
Misconception
NamedTypeParameter
To instantiate a generic type, for each type parameter one has to specify both the name and the type

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors