Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Type of an Expression

Java Language Specification, Version Java SE 21 Edition
15.3. Type of an Expression

Read this Section of the Authoritative Specification

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

3 Documented Misconceptions

Misconception
CompositeExpressionsUntyped
Expressions that consist of multiple parts have no type
Misconception
ExpressionsDynamicallyTyped
One has to evaluate an expression to determine its type
Misconception
TargetTyping
The type of a numerical expression depends on the type expected by the surrounding context

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors