A、能够将一个字符串解析成Date对象
B、要求字符串必须符合日期/时间的格式要求
C、返回值是字符串类型的日期
D、执行该方法需要处理ParseException异常
在J2EE中,接受一个XML文档,返回document对象,以分析该XML文档,可以使用如下()方法获得document对象A.Documentdoc=DocumentBuilderFactory.parse(“my.xml”);B.Documentdoc=DocumentBuilder.parse(“my.xml”);C.DocumentBuilderFactorydbf=DocumentBuilderFactory.newInstance();DocumentBuilder builder=dbf.newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);D.DocumentBuilderbuilder=newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);
点击查看答案
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());
关于使用FTP下载文件,下列说法中错误的是
下列关于控件类和窗口类的说法中,错误的是
下列关于邪正斗争决定疾病转归的说法中,错误的是( )
关于定量安全评价方法中概率风险评价法的说法中,错误的是( )。
下列关于信息的说法中,错误的是( )。