test
Exception
Compilation fails.
NullPointerException
单选题Given: What is the result?()Ar, t, t,Br, e, o,CCompilation fails.DAn exception is thrown at runtime.
点击查看答案
单选题Given: What is the result?()AtestBExceptionCCompilation fails.DNullPointerException
单选题Given: What is the result?()ACompilation succeeds.BCompilation fails due to multiple errors.CCompilation fails due to an error only on line 20.DCompilation fails due to an error only on line 21.ECompilation fails due to an error only on line 22.
单选题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?()ACanadaBnull CanadaCCanada nullDCanada CanadaECompilation fails due to an error on line 26.FCompilation fails due to an error on line 29.
单选题public static void main(String[] args) { try { args=null; args[0] = “test”; System.out.println(args[0]); } catch (Exception ex) { System.out.println(”Exception”); } catch (NullPointerException npe) { System.out.println(”NullPointerException”); } } What is the result?()AtestBExceptionCCompilation fails.DNullPointerException
单选题Given: What is the result?()ATestABTestBCCompilation fails.DAn exception is thrown at runtime.