SCJP历年考题.docVIP

  • 2
  • 0
  • 约6.44万字
  • 约 29页
  • 2017-11-17 发布于河南
  • 举报
SCJP历年考题

Question No: 1?Given:?1. public class test (?2. public static void main (String args[]) {?3. int i = 0xFFFFFFF1;?4. int j = ~i;?5.?6. }?7. )?What is the decimal value of j at line 5??A. 0?B. 1?C. 14?D. ?5?E. An error at line 3 causes compilation to fail.?F. An error at line 4 causes compilation to fail.?Answer: D Question No: 2?Given:?Integer i = new Integer (42);?Long 1 = new Long (42);?Double d = new Double (42.0);?Which two expressions evaluate to True? (Choose Two)?A. (i ==1)?B. (i == d)?C. (d == 1)?D. (i.equals (d))?E. (d.equals (i))?F. (i.equals (42))?Answer: D, E

文档评论(0)

1亿VIP精品文档

相关文档