Book Image

Mastering the Java Virtual Machine

By : Otavio Santana
Book Image

Mastering the Java Virtual Machine

By: Otavio Santana

Overview of this book

Mastering the Java Virtual Machine is a comprehensive guide that will take you into the heart of Java programming, guiding you through the intricate workings of the Java Virtual Machine (JVM) and equipping you with essential skills to become a proficient Java developer. You’ll start by understanding the JVM, exploring its architecture and how it executes Java code. Through detailed explanations and real-world examples, you’ll gain a deep understanding of JVM internals, enabling you to write efficient and optimized Java applications. As you progress, you’ll delve into memory management and execution, unraveling the complexities of heap and stack management, garbage collection, and memory profiling. You'll learn how memory is allocated and reclaimed in the JVM, as well as how to optimize memory usage and identify performance bottlenecks in your applications. With this knowledge, you’ll be able to create Java programs that are not only robust but also highly performant. By the end of this book, you’ll have the skills needed to excel in Java programming, writing efficient, maintainable code.
Table of Contents (19 chapters)
Free Chapter
1
Part 1: Understanding the JVM
5
Part 2: Memory Management and Execution
9
Part 3: Alternative JVMs
12
Part 4: Advanced Java Topics

Index

As this ebook edition doesn't have fixed pagination, the page numbers below are hyperlinked for reference only, based on the printed edition of this book.

A

access flags 23

addition operations

dadd 34

fadd 34

iadd 34

ladd 34

ahead-of-time (AOT) compilation 72, 122, 140

Amazon Corretto 137

advantages 137

Amazon Web Services (AWS) 135

anewarray 42

arithmetic operations 34

addition 34

division 35

multiplication 35

subtraction 35

arraylength 43

arrays 12

Automatic Resource Management (ARM) 195

Azul Zing 138, 139

benefits 139

Azul Zulu 138, 139

B

bastore 43

bitwise operations

iand 36

ior 36

ixor 36

land 36

lxor 36

Boolean values 33

bytecode 32, 33, 55-60

byte operations 33

C

castore 43

char operations 33

checkcast 43

classes 12

class files

data repositories 26, 27

decoding 19, 20

fields 26, 27

headers 20-25

methods...