Chapterย 2.ย The Structure of the Java Virtual Machine
Flow


.java ํ์ผ ์์ฑ
Java Compiler (javac)๋ก .java ํ์ผ ์ปดํ์ผ
.java โ .class
3-1) Class Loader : .class ํ์ผ์ JVM์ load
3-2) Byte Code verification
3-3) Just-In-Time Compiler๋ก execute
Java Byte Code
.classJVM

JVM ๊ตฌ์ฑ ์์
| Class Loader | ๋์ ์ผ๋ก ํด๋์ค๋ฅผ ๋ก๋ |
|---|---|
| Interpreter | ๋ฐ์ดํธ ์ฝ๋๋ฅผ ์ฝ๊ณ ํด์ |
| Just-In-Time compiler | ์ค์ ๋ฐํ์์ ๋ฐ์ดํธ ์ฝ๋๋ฅผ ๊ธฐ๊ณ์ด๋ก ๋ณํ |
| Garbage collector | ๋์ด์ ์ฌ์ฉํ์ง ์๋ ๋ฉ๋ชจ๋ฆฌ ์๋ ํ์ |
Compiler vs. DeCompiler
| Compiler | DeCompiler |
|---|---|
| .java โ .class | .class โ .java |
| Java source code โ Byte code | Byte code โ Java source code |
classย File Formatclassย File Format