1. high-level language 2. assembly language 3. machine language 4. fourth-generation language A computer has its own machine language. The PC for instance, uses the binary code machine language. Ex. High-Level Language Machine Language (low-level language) x+y 1101 0000 0000 0111 1011 1111 1110 A program written in high-level language is called source program. In the example, the source is Java. In the computer, a compiler or interpreter translates the Java language x + y into the binary code series 1101 0000 0000 0111 1011 1111 1110 the computer can run.
The JAVA Platform
Platform- hardware (processor) + operating system (OS)
Example of Platforms: 1. Intel + Windows (Hardware is Intel; OS is Microsoft Windows) 2. Intel + Linux 3. Intel + Solaris 4. Intel + Mac OS The Java Platform consists of API (Java Application Program Interface) + JVM (Java Virtual Machine) The Java Compiler does not translate a Java program into machine language but into byte-code. The byte-code is the machine language for a hypothetical computer called Java Virtual Machine. These byte- codes can be sent to any computer with JVM and can be posted in the internet. A program in the computer called interpreter translates these byte-codes into machine language of the computer. The Java compiler has a Java Virtual Machine called JDK (Java Development Kit). Current Version is JDK 8. NetBeans is a program that supports Java.
Java API (Java Application Programming Interface)
-the class library of Java. It consists of packages, Description of class Scanner