Reference book Course material Beginning Java Objects From Concepts to Code Second edition Deitel deitel, Java How To Program, Six Edition Thinking in Java. Bruce Eckel http:/java.sun.com(oracle) http:/java.sun.com/docs/books/tutorial/
11 Reference Book & Course Material • Beginning Java Objects_From Concepts to Code_Second Edition • Deitel & Deitel, Java How To Program, Six Edition. • Thinking in Java, Bruce Eckel • http://java.sun.com (Oracle) • http://java.sun.com/docs/books/tutorial/
Topics Covered Today Unit 1. 1 Java applications 1.1.1 Applications in Java
12 Topics Covered Today • Unit 1.1 Java Applications – 1.1.1 Applications in Java
1 Java Basic Java source code is first written in plain text files ending with the java extension Those source files are then compiled into class files by the Java compiler gjavac) a. class file does not contain code that is native to your processor, it instead contains bytecodes(字节码)- the machine language of the Java Virtual Machine The Java launcher tool (java) then runs your application with an instance of the Java virtual Machine
13 1. Java Basic • JAVA source code is first written in plain text files ending with the .java extension. • Those source files are then compiled into .class files by the Java compiler (javac). – A .class file does not contain code that is native to your processor; – it instead contains bytecodes(字节码) -- the machine language of the Java Virtual Machine. • The Java launcher tool (java) then runs your application with an instance of the Java Virtual Machine
JAVA Technology myProgram. Java Interpreter Program rogram class Compiler 要
14 JAVA Technology
Platform-Independent Java Program class He llowbr1dApp Public static void main(String [ args)( 外pi1:( Compiler Hel IdworIdapp, java Interpreter)( Interpreter )( Interpreter Hello Hello World Hello World World Win 32 Solaris MacOS 15
15 Platform-Independent