33Java includes: Object-oriented features Platform independence (truly portable across different operating systems)Multithreading (different processes are executed at the same time)Garbage collection (automatic memory management)Networking and security featuresInternet –Web development features
36the language, the Java Applications Programming Interface (API) Basics of a Typical Java Environment.Java systems generally consist of several parts:an environment,the language, the Java Applications Programming Interface (API)class libraries
37edit compile load verify execute Java programs go through 5 phases to be executed:editcompileloadverifyexecute
41The Java compiler translates the Java program into bytecodes -- the language understood by the Java interpreter.The file called with the extension .class is created.
42The Java compiler translates Java sourse code into Java bytecode, which is a representation of the program in a low-level form similar to machine language code. The Java interpreter reads Java bytecode and executes it on a specific machine.
43LoadingThe program must be placed in memory before it will be executed.This is done by the class loader that takes the Hello.class file containing bytecodes and transfers it into memory. The class file can be loaded from a disk on your system or over the Internet.
47When the browser sees the applet in HTML document, the browser launches the Java class loader to load the applet. Once the applet is loaded, the Java interpreter in the browser begins executing the applet.
48Before the bytecodes in an applet are executed by the Java interpreter, they are veryfied by the bytecode veryfier.(to ensure that files loaded from the Internet do not violate Java security restrictions - not to damage your files and system).
49Finally, the computer interprets the program, one bytecode at a time.