OCJP认证解析3.docVIP

  • 20
  • 0
  • 约2.4万字
  • 约 24页
  • 2017-05-26 发布于河南
  • 举报
OCJP认证解析3

Exam : 1Z0-851 Java Standard Edition 6?Programmer Certified?Professional Exam 以下分析全都是我自己分析或者参考网上的,定有疏漏,还请大家对我的分析提出质疑。 QUESTION 61 Given: 1. public class TestString1 { 2. public static void?main(String[] args) { 3. String str = 420; 4. str += 42; 5. System.out.print(str); 6. } 7. } What is the output? A. 42 B. 420 C. 462 D. 42042 E. Compilation fails. F. An exception is thrown at runtime. Answer: D 42会自动类型转换成String类型。 QUESTION 62 Given: 12. Date date = new Date(); 13. df.setLocale(Locale.ITALY); 14. String s = df.format(date); The variable df is an object of type DateFormat that has been in

文档评论(0)

1亿VIP精品文档

相关文档