Skip to Content
JVM Performance Engineering: Inside OpenJDK and the HotSpot Java Virtual Machine
book

JVM Performance Engineering: Inside OpenJDK and the HotSpot Java Virtual Machine

by Monica Beckwith
April 2024
Intermediate to advanced content levelIntermediate to advanced
400 pages
12h 57m
English
Addison-Wesley Professional
Content preview from JVM Performance Engineering: Inside OpenJDK and the HotSpot Java Virtual Machine

Chapter 2

Performance Implications of Java’s Type System Evolution

The type system is a fundamental aspect of any programming language, and Java is no exception. It governs how variables are declared, how they interact with each other, and how they can be used in your code. Java is known for its (strongly) static-typed nature. To better understand what that means, let’s break down this concept:

  • Java is a statically type-checked language: That means the variable types are checked (mostly) at compile time. In contrast, dynamically type-checked languages, like JavaScript, perform type checking at runtime. This static type-checking contributes to Java’s performance by catching type errors at compile time, leading to more robust and efficient code. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java SE 17 Developer (1Z0-829)

Java SE 17 Developer (1Z0-829)

Simon Roberts
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee

Publisher Resources

ISBN: 9780134659954