多项选择题
A.File f2 = new File(f);
B.FileReader fr2 = new FileReader(f);
C.FileReader fr2 = new FileReader(fr);
D.BufferedReader br2 = new BufferedReader(fr);
多项选择题 现有如下命令行: java -showversion ShowVersion ShowVERSION SHOWVERSION 哪三个是对的?()
多项选择题 class Waiting implements Runnable { boolean flag = false; public synchronized void run() { if (flag) { flag = false; System.out.print("1 "); try { this.wait(); } catch (Exception e) { } System.out.print("2 "); } else { flag = true; System.out.print("3 "); try { Thread.sleep(2000); } catch (Exception e) { } System.out.print("4 "); notify(); } } public static void main(String [] args) { Waiting w = new Waiting(); new Thread(w).start(); new Thread(w).start (); } } 以下哪两项是正确的?()
多项选择题 哪两个java.lang.Thread方法抛出受检异常?()