Java 1. 2. 3. 4. 5. JNI6. RMI7. 8. 1. 2. 3. 4. Java try{ … }catch(){ … }catch(){ … }finally{ … } try-catch • ErrorJavaJava • ExceptionJava • RuntimeExceptionJavaArithmeticException(0)ArrayIndexOutOfBoundsException • IOExceptionJavaJava • 15-18 • 15 • 3-14 • 3-18 • try 3-14 • 7-11 1. Collection— 2. Set— 3. List— 4. Queue—since1.5 5. Map— 6. SortedSet—set 7. SortedMap—Map API API java.util.Arraysjava.util.Collections collections5 –16Unicode NIOIO serializable transient runnable thread Thread.interrupt() ThreadWebWeb : 1. 2. 3. 4. 5. 6. 7. JNIJNIJavaNativeInterface JNIJNI1. java 2. javahc/c++ 3. c/c++() 4. javajava.library.path 5. java 6. javadll JNARMIRMIJavaRMI JavaRMI RemoteMethodInvocation CORBACommonObjectRequestBrokerArchitecture RMI-IIOP=RMI+CORBA 1. HelloInterface.java 2. UnicastRemoteObject(Hello.java) 3. RMIHelloServer.java 4. HelloClient 5. HelloServerHelloClient PC - JavaAWTAbstractWindowToolkit SWING SWTStandardWidgetToolkit EclipseRCP GUI ECLIPSEAPPjavac Contact:xue.anzhen@gmail.com