Skip to content

Commit 87e245f

Browse files
committed
Class loading documentation updated
1 parent d9b273b commit 87e245f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

doc/Class Loading and structure/Class File Format.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ According to the [official JVM Specifications](https://docs.oracle.com/javase/sp
2424

2525
Looks complicated... But here is the pretty diagram, that explains everything!
2626

27-
![image](/doc/Diagrams/Class%20File%20Structure.drawio.svg)
28-
29-
Still complicated... But at least it is more clear now!
27+
![image](../Diagrams/Class%20Loading%20and%20structure/Class%20File%20Structure.drawio.svg)
3028

29+
Still complicated, of course. But at least it is much more convenient to work with, right?
30+
## Detailed fields description
3131
Let's start describing each field, one by one:
3232

33-
<details>
34-
<summary>Magic Value</summary>
33+
<p>
34+
<img align="right" src="../Diagrams/Class%20Loading%20and%20structure/Magic%20Value.png" alt="drawing" width="100"/>
3535

36-
Each `.class` value starts with special 'magic value'
37-
</details>
36+
### Magic value
37+
Each `.class` value starts with special 'magic value' - a sequence of 4 bytes, that all Java class start with. It's value is 0xCAFEBABE
38+
</p>
20.5 KB
Loading

0 commit comments

Comments
 (0)