获取Calendar类型对象的语句是()
A: Calendar c = new Calendar( );
B: Calendar c =Calendar.getInstance( );
C: Date d = new Date( );Calendar c = (Calendar)d;
A: Calendar c = new Calendar( );
B: Calendar c =Calendar.getInstance( );
C: Date d = new Date( );Calendar c = (Calendar)d;
举一反三
- 得到一个Calendar对象的方法是new Calendar();
- 有关Calendar类说法错误的是( ) A: Calendar类提供了日历功能 B: Calendar类是一个抽象类 C: Calendar类可以采用new实例化 D: 可以使用Calendar类的static方法getInstance()初始化一个日历对象
- 下面哪个方法可以获得Calendar实例( ) A: new Calendar() B: Calendar.getInstance() C: get(Calendar.YEAR)) D: get(Calendar.MONTH))
- When is New Year’s Day? A: January 1st in lunar calendar B: February 1st in lunar calendar C: January 1st in solar calendar D: February 1st in solar calendar
- Iranian follow which is uniquely used in Iran. A: Gregorian Calendar B: Persian Calendar C: Hebrew Calendar D: Christian Calendar