From ff1b772ee5806d29ddc3c72b7b27f5ccee2552cf Mon Sep 17 00:00:00 2001 From: Puskar Chapagain Date: Fri, 26 Jun 2026 16:52:02 -0400 Subject: [PATCH 1/2] Added description for JVM --- source/ch2_firstjavaprogram.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx index 1413416..b64d843 100644 --- a/source/ch2_firstjavaprogram.ptx +++ b/source/ch2_firstjavaprogram.ptx @@ -240,7 +240,7 @@ $ JVM byte code The job of the compiler is to turn your java code into language that the Java Virtual Machine (JVM) can understand. - We call the code that the JVM understands byte code. + JVM is a bytecode interpreter that allows Java programs to run on any platform without having to modify them. The JVM interprets the byte code much like the Python interpreter interprets your Python. However since byte code is much closer to the native language of the computer it can run faster.

From 65c62eb36152a9f1aacecb53d986dd064834ad72 Mon Sep 17 00:00:00 2001 From: Puskar Chapagain Date: Mon, 29 Jun 2026 09:02:23 -0400 Subject: [PATCH 2/2] Added the JVM definition and cleaned up the paragraph --- source/ch2_firstjavaprogram.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch2_firstjavaprogram.ptx b/source/ch2_firstjavaprogram.ptx index b64d843..9b62f7d 100644 --- a/source/ch2_firstjavaprogram.ptx +++ b/source/ch2_firstjavaprogram.ptx @@ -241,7 +241,7 @@ $ byte code The job of the compiler is to turn your java code into language that the Java Virtual Machine (JVM) can understand. JVM is a bytecode interpreter that allows Java programs to run on any platform without having to modify them. - The JVM interprets the byte code much like the Python interpreter interprets your Python. + The JVM interprets the byte code much like the Python interpreter does with Python. However since byte code is much closer to the native language of the computer it can run faster.