异常处理的执行过程的理解public class Test {public static void main(String[] args) {try {System.out.println(3/0);System.out.println("你好");}catch(ArithmeticException e) {System.out.println("产生算术操作异常");return;}catch(Exception e) {System.out.println("产生异常 ");return;}finally {System.out.println("执行finally块");}System.out.println("程序执行结束! ");}}程序运行结果:如果除掉程序中两个return语句,程序运行结果:
查看答案
理解实现Runnable接口创建的多线程资源共享public class Test {public static void main(String args[]) {Target target =new Target();Thread t1 =new Thread(target);Thread t2 =new Thread(target);t1.start();try{ Thread.sleep(1000);}catch(Exception exp){}t2.start();}}class Target implements Runnable{int i = 10;public void run() {i--;System.out.println("i="+i);}}程序运行结果:
Sonia, we are ________ informed, loves her family very much.
A. reliable
B. reliably
C. rely
She is a novel ________ and reads as much as she can.
A. addict
B. addicted
C. addiction
He was the chief military ______ to the Philippine military forces when the United States entered World War Two in December, 1941.
A. advise
B. advisor
C. advisory