Programming Misconceptions
Home
Misconceptions
Concepts
Languages
Textbooks
Contributors
About
Home
Languages
Java
jls21
Subtyping
Java Language Specification, Version Java SE 21 Edition
4.10. Subtyping
Read this Section of the Authoritative Specification
https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.10
2 Documented Misconceptions
SubtypeCompatibleWithSupertype
A variable of a subtype can reference an object of a supertype
SupertypeIncompatibleWithSubtype
A variable of a supertype cannot reference an object of a subtype
Find Misconceptions by...
Concept
Programming Language
Notional Machine
Textbook
About
About This Site
Structure and Content of the Inventory
Contributors