Java认证考试

14. DateFormat df;  15. Date date = new Date();  16. //insert code here  17. String s = df.format( date);  Which two,inserted independently at line 16, allow the code to compile?()A、 df= new DateFormat();B、 df= Date.getFormatter();C、 df= date.getFormatte

题目

14. DateFormat df;  15. Date date = new Date();  16. //insert code here  17. String s = df.format( date);  Which two,inserted independently at line 16, allow the code to compile?()

  • A、 df= new DateFormat();
  • B、 df= Date.getFormatter();
  • C、 df= date.getFormatter();
  • D、 df= date.getDateFormatter();
  • E、df = DateFormat.getDateInstance();
  • F、 df= DateFormat.getInstance();
参考答案和解析
正确答案:E,F
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

DateFormatdf;15.Datedate=newDate();16.//insertcodehere17.Strings=df.format(date);Whichtwo,insertedindependentlyatline16,allowthecodetocompile?()

A.df=newDateFormat();

B.df=Date.getFormatter();

C.df=date.getFormatter();

D.df=date.getDateFormatter();

E.df=DateFormat.getDateInstance();

F.df=DateFormat.getInstance();


参考答案:E, F

第2题:

校准实验室能力验证可以采用En值作为验证判定的统计量,当( )时验证结果为可以接受。

A:︱En︱>1
B:︱En︱≥1
C:︱En︱≤1
D:0<︱En︱<1

答案:C
解析:
这是En值作为验证判定的统计量的判据。《能力验证结果的统计处理和能力评价指南》En≤1满意结果;En>1不满意结果。

第3题:

WhatcreatestheappropriateDateFormatobjectandaddsadaytotheDateobject?()

A.35.DateFormatdf=DateFormat.getDateFormat();42.d.setTime((60*60*24)+d.getTime();

B.35.DateFormatdf=DateFormat.getDateInstance();42.d.setTime((1000*60*60*24)+d.getTime());

C.35.DateFormatdf=DateFormat.getDateFormat();42.d.setLocalTime((1000*60*60*24)+d.getLocalTime());

D.35.DateFormatdf=DateFormat.getDateInstance();42.d.setLocalTime((60*60*24)+d.getLocalTime());


参考答案:B

第4题:

Date、Calendar以及DateFormat类都位于java.util包中


正确答案:错误

第5题:

车体焊接标准为()

  • A、EN15085
  • B、EN12663
  • C、EN755
  • D、EN15227

正确答案:A

第6题:

Given:Which code fragment, inserted at line 23, allows the code to compile?()

A.df = new DateFormat();

B.df = Date.getFormat();

C.df = date.getFormat();

D.df = DateFormat.getFormat();

E.df = DateFormat.getInstance();


参考答案:E

第7题:

4.412×5.13×0.65757的积计算正确的是( )。

A、14. 8831500492
B、14.9
C、14. 88
D、14. 8861314

答案:B
解析:
几个数据相乘相除时,各参加运算数据所保留的位数,以有效数字位数最少的为标准,其积或商的有效数字也依此为准。所以答案是B。

第8题:

33.Dated=newDate(0);34.Stringds=December15,2004”;35.//insertcodehere36.try{37.d=df.parse(ds);38.}39.catch(ParseExceptione){40.System.out.println(”Unabletoparse+ds);41.}42.//insertcodeheretooWhichwillcreatetheappropriateDateFormatobjectandaddadaytotheDateobject?()

A.35.DateFormatdf=DateFormat.getDateFormat();42.d.setTime((60*60*24)+d.getTime());

B.35.DateFormatdf=DateFormat.getDateJnstance();42.d.setTime((1000*60*60*24)+d.getTime());

C.35.DateFormatdf=DateFormat.getDateFormat();42.d.setLocalTime((1000*60*60*24)+d.getLocalTime());

D.35.DateFormatdf=DateFormat.getDateJnstance();42.d.setLocalTime((60*60*24)+d.getLocalTime());


参考答案:B

第9题:

程序图中1DF,2DF、3DF、DFI、DF2、DF3、DF4、DF5、DF7、DF8及DF9等符号的含义是什么?


正确答案: ①1DF是前吹扫电磁阀,2DF是调火电磁阀。
②3DF是调水电磁阀,DFI,DF2是引燃电磁阀。
③DF3是空气雾化电磁阀,DF4是蒸汽雾化电磁阀。
④DF5是燃油控制电磁阀,DF9是排气阀。
⑤DF7、DF8是主燃气阀。

第10题:

郑州地铁1号线转向架构架焊接设计和制造符合()标准焊接体系。

  • A、EN15095
  • B、EN15096
  • C、EN15085
  • D、EN15086

正确答案:C

更多相关问题