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