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