What is the use of Compiling in Java?


 Here's a diagram of Computer Languages.

Machine language is all it starts since our computer can only read numbers 1 and 0. Then there goes Low-level languages, where a very good example is Assembly language and the C programming (language. Then there is High-level language, where you can find Visual Basic and Java.


So what's the use of Compiling in Java? Why can't you not run the program right away without compiling?

Because Java is one of the High-level languages, it translates it to a low level language and finally, machine language since as said earlier that our computer can only read binary digits.



So that means that the codes we type and the variables we create are translated to a language which the computer can only understand.

We cannot understand Machine Language immediately. It takes time to understand each line of Machine Language since each 1 and 0 has its own designated meaning depending on how we code it.

2 comments:

Extended Search

Custom Search
Hello World