60 likes | 99 Views
Programming Languages. Each type of CPU has its own specific machine language But, writing programs in machine languages is cumbersome (too detailed) So, we write programs in languages which are more intuitive Java, C++, Visual basic, C, Fortran etc.
E N D
Programming Languages • Each type of CPU has its own specific machine language • But, writing programs in machine languages is cumbersome (too detailed) • So, we write programs in languages which are more intuitive • Java, C++, Visual basic, C, Fortran etc. • Then, we use compilers to translate programs into machine language
Program Compilation Compiler Yourprogram Machinecode
The Java Programming Language • Java's compilation process is a little different from other languages. • The Java compiler translates Java source code into a special representation called bytecode • Java bytecode is not the machine language for any traditional CPU
Java Translation and Execution Java source code Java bytecode Java compiler Java interpreter Bytecode compiler Java Virtual Machine Machine code