An exception is thrown at runtime.
r, e, o,
Compilation fails.
r, t, t,
单选题Given: What is the result?()Ar, t, t,Br, e, o,CCompilation fails.DAn exception is thrown at runtime.
点击查看答案
单选题Runnable r = new Runnable() { public void run() { System.out.print(”Cat”); } }; Threadt=new Thread(r) { public void run() { System.out.print(”Dog”); } }; t.start(); What is the result?()ACatBDogCCompilation fails.DThe code runs with no output.EAn exception is thrown at runtime.
单选题Given: What is the result?()AtestBExceptionCCompilation fails.DNullPointerException
单选题Given: What is the result?()AtestBnullCAn exception is thrown at runtime.DCompilation fails because of an error in line 1.ECompilation fails because of an error in line 4.FCompilation fails because of an error in line 5.
单选题Given: What is the result?()ABBB, followed by an Exception.CCompilation fails due to an error on line 9.DCompilation fails due to an error on line 14.EAn Exception is thrown with no other output.
单选题Given: What is the result?()ATestABTestBCCompilation fails.DAn exception is thrown at runtime.
单选题Given: 12. System.out.format("Pi is approximately %d.", Math.PI); What is the result?()AAn exception is thrown at runtime.BPi is approximately 3.CPi is approximately 3.141593.DCompilation fails.