Java type system

https://www.oreilly.com/library/view/java-in-a/9781449371296/ch04.html

Java static type system

A statically typed language is one in which variables have definite types, and where it is a compile-time error to assign a value of an incompatible type to a variable. Java is an example of a statically typed language. Languages that only check type compatibility at runtime are called dynamically typed—JavaScript is an example of a dynamically typed language.

references types

classes
arrays
interfaces
generics

compile-time types and runtime types

special classes and interfaces

enums
annotations

nested types

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容