单项选择题
Java SE JDK中类库java.text的用途是哪项?()
A.工具类
B.输出输入支持类
C.文本处理和格式化类
D.结构化查询语言(SQL)支持类
点击查看答案&解析
相关考题
-
单项选择题
class WhileTests { public static void main(String [] args) { int x = 5; while (++x 〈 3) { --x; } System.out.println("x = " + x); } } 结果是什么?()
A.x = 2
B.x = 5
C.x = 6
D.编译失败 -
单项选择题
class DemoApp{ public static void main(String[] args){ int x = 5; int y = ++x + x++; S ystem.out.println(“y=”+y+”,x=”+x); } } 以上程序运行后的输出结果是哪项?()
A.y=10,x=5
B.y=11,x=6
C.y=12,x=7
D.y=11,x=7 -
单项选择题
class Parser extends Utils { public static void main (String [] args) { try { System.out.print(new Parser().getInt("42")); } catch (NumberFormatException n) { System.out.println("NFExc "); } } int getInt(String arg) throws NumberFormatException { return Integer.parseInt(arg); } } class Utils { int getInt(String arg) { return 42; } } 结果为:()
A.42
B.NFExc
C.42NFExc
D.编译失败
