blog/how-the-jvm-executes-java-code #70
Replies: 2 comments
-
Hi César, first of all thank you for the nice and clear article. One remark though: in the class unloading paragraph you write that the "class or interface" are unloaded, which as far as I know is correct. Your code example, using the WeakReference shows that the "instance" has been garbage collected and not the class itself. I think this is a bit misleading. |
Beta Was this translation helpful? Give feedback.
-
Hi @apedano, thanks for the remark. You're right! The JVM loads the binary format of the class (i.e., the Therefore, the |
Beta Was this translation helpful? Give feedback.
-
blog/how-the-jvm-executes-java-code
This blog post describes in details what happens when executing a Java application. After reading this post, you will understand the execution lifecycle of a Java application and the activities performed by the JVM during the execution phase.
https://www.cesarsotovalero.net/blog/how-the-jvm-executes-java-code.html
Beta Was this translation helpful? Give feedback.
All reactions