What is the Java translation process?

So, today my question is about the Java translation process. I understand the general translation process, but I'm not too sure how this relates to Java.

Where does the lexical analysis go? When is a character table created? When is parsing presented and how is a syntax tree created?

From what I have already learned and realized that the Java source code is then translated into independent bytecode through a JVM or Java virtual machine. Is this when he undergoes lexical analysis?

I also know that after it is converted to byte code, it is converted to machine code, but I do not know how it progresses after that.

And last but not least, is the Java translation process different from C ++ or Python?

+4
source share
1 answer

The entire translation process is performed when compiling a Java program. This is no different from compiling a C ++ program or any other compiled language. The biggest difference is that this translation focuses on the Java bytecode language, rather than assembly or machine language. The bytecode undergoes its own translation process (including many of the same stages) when the program is running.

0
source

Source: https://habr.com/ru/post/1537807/


All Articles