Date、Calendar以及DateFormat类都位于java.util包中
第1题:
A.df=newDateFormat();
B.df=Date.getFormatter();
C.df=date.getFormatter();
D.df=date.getDateFormatter();
E.df=DateFormat.getDateInstance();
F.df=DateFormat.getInstance();
第2题:
继承是Java语言的-个重要机制,所有的Java类都继承自根类( )。
A.Class
B.Object
C.String
D.Date
第3题:
继承是Java语言的一个重要机制,所有的Java类都继承自根类( )。
A.Class
B.Object
C.String
D.Date
第4题:
继承是Java语言的一个重要机制,所有的Java类都继承自根类( )。
A.Class
B.Object
C.String
D.Date
第5题:
A.无参的构造方法Date(),用来创建当前日期时间的Date对象
B.在JDK的javA.util包中提供了一个Date类用于表示日期和时间
C.推荐使用Date(int year,int month,int date)构造方法来创建Date对象
D.接收一个long型参数date的构造方法Date(long date),用于创建指定时间的Date对象
第6题:
用户随便输入一个日期(yyyy-MM-dd), 打印出这个日期所在月的每一天, 格式如下:
日 一 二 三 四 五 六
1 2 3 4 5 6
提示:
(1) 字符串 -->util.Date
(2) Date -->Calendar
(3) 修改日期 -->set
(4) 记录用户输入的是哪一天 -->get
(5) 判断星期几 -->get
(6) 获取该月份的最大天数 -->calendar.getActualMaximum
(7) 日期自增 -->add
第7题:
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?()
第8题:
Given a valid DateFormat object named df,and 16.Date d = new Date(0L); 17.String ds = "December 15, 2004"; 18.//insert code here What updates d’s value with the date represented by ds?()
第9题:
对
错
第10题:
Select the published calendar in Windows Calendar, and then click the Sync All option.
Publish your local calendar in Windows Calendar and then click the Automatically publish changes option.
Schedule a task to publish the Calendar.ics file to the shared network location. Configure the task to run on an hourly schedule.
Instruct the calendar owner to click the Local calendar option in Windows Calendar, and then click the Automatically publish changes option for tasks.
第11题:
The value of s is 14-dic-2000.
The value of s is Dec 14, 2000.
An exception is thrown at runtime.
Compilation fails because of an error in line 13.
第12题:
18. d = df.parse(ds);
18. d = df.getDate(ds);
18. try {19. d = df.parse(ds);20. } catch(ParseException e) { };
18. try {19. d = df.getDate(ds);20. } catch(ParseException e) { };
第13题:

A.df = new DateFormat();
B.df = Date.getFormat();
C.df = date.getFormat();
D.df = DateFormat.getFormat();
E.df = DateFormat.getInstance();
第14题:
在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData( ______ ) throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"I" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }
A.Employee[]e
B.employee.dat
C.PrintWriter out
D.BufferedWriter
第15题:
3在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData(______)throws IOException { GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"T" +salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MONTH)+1)+ "|" +calandar.get(Calendar.DAY_OF_MONTH)); }
A.Employee[] e
B.employee.dat
C.PrintWriter out
D.BufferedWriter
第16题:
A.int get(int field)
B.void add(int field,int amount)
C.void set(int field,int value)
D.void set(int year,int month,int date)
第17题:
A、Date类获取的时间是以1970秒开始计时的
B、在JDK1.1之后,Date类逐渐被Calendar类取代
C、Date类中大部分构造方法都被声明为已过时
D、Date类中大部分方法依然推荐使用
第18题:
What is the name of the User Interface (UI) widget that is just a standard edit box that is linked to a calendar with the pop-up property set?()
第19题:
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 initialized in line 11. What is the result if this code is run on December 14, 2000?()
第20题:
设备已从工厂发出
设备已存储在代理商仓库内
设备已存储在最终用户现场,或已安装在最终用户现场
设备安装场地完工(场地检查表无否项)时间在LCD(last calendar date)之内
设备安装场地完工(场地检查表无否项)时间在“LCD(last calendar date)+30天“之内
第21题:
df= new DateFormat();
df= Date.getFormatter();
df= date.getFormatter();
df= date.getDateFormatter();
df = DateFormat.getDateInstance();
df= DateFormat.getInstance();
第22题:
Copy the Calendar.dll file to the c:/wwwroot/Calendar/code folder
Copy the Calendar.dll file to the c:/wwwroot/Calendar/bin folder
Copy the Calendar.svc.cs file to the c:/wwwroot/Calendar/bin folder
Copy the Calendar.svc.cs file to the c:/wwwroot/Calendar/code folder
第23题:
35. DateFormat df= DateFormat.getDateFormat(); 42. d.setTime( (60 * 60 * 24) +d.getTime());
35. DateFormat df= DateFormat.getDateJnstance(); 42. d.setTime( (1000 * 60 * 60 * 24) + d.getTime());
35. DateFormat df= DateFormat.getDateFormat(); 42. d.setLocalTime( (1000*60*60*24) + d.getLocalTime());
35. DateFormat df= DateFormat.getDateJnstance(); 42. d.setLocalTime( (60 * 60 * 24) + d.getLocalTime());