I
I
Ibragim1239872020-12-05 13:34:19
Java
Ibragim123987, 2020-12-05 13:34:19

How does interpretation work in Java JVM?

I decided to delve into the JVM architecture and realized that I did not understand how the interpretation mechanism works.
I decided to look at the example of such an algorithm: 1) Pour water into the kettle 2) Light a match 3) Open the gas burner tap 4) Bring the match to the burner 5) Put the kettle on the stove 6) Wait for the water to boil 7) Turn off the gas.

Could you help with the Java Virtual Machine interpreter (how it reads and interprets the bytecode) using the algorithm proposed above as an example?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2020-12-05
@saboteur_kiev

Ibragim123987 , The example of your algorithm is generally incorrect.
No programming language operates on boiling or kettles.
All programming languages ​​operate on data (variables, memory cells).
Loops and conditions also operate exclusively with these data - numbers, strings (which are also numbers inside).
Therefore, based on your algorithm, there is no way at all

O
Orkhan, 2020-12-05
Hasanly @azerphoenix

Here is a pretty good answer:
link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question