black

SCJP程序员认证考试

登录

单项选择题

try { 
if ((new Object))(.equals((new Object()))) { 
System.out.println(“equal”); 
}else{ 
System.out.println(“not equal”); 
} 
}catch (Exception e) { 
System.out.println(“exception”); 
}  
What is the result? () 

A. equal
B. not equal
C. exception
D. Compilation fails.

相关考题

单项选择题 public class Test {  public static void main(String [] args) {  System.out.println(args.length > 4 &&  args[4].equals(“-d”));  }  }   If the program is invoked using the command line: java Test One Two Three –d   What is the result?()

多项选择题 Giventhatbandcrefertoinstancesofwrapperclasses,whichtwostatementsaretrue?()

单项选择题 String a = null;  a.concat(“abc”);  a.concat(“def”);  System.out.println(a);   What is the result?()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064