单项选择题
A. Compilation succeeds.
B. An exception is thrown.
C. Compilation fails because of an error at line 2.
D. Compilation fails because of an error at line 6.
单项选择题 public class Test {} What is the prototype of the default constructor?()
单项选择题 try { int x = 0; int y = 5 / x; } catch (Exception e) { System.out.println(“Exception”); } catch (ArithmeticException ae) { System.out.println(“Arithmetic Exception”); } System.out.println(“finished”); What is the result?()
单项选择题 int i = 0; while (true) { if(i==4) { break; } ++i; } System.out.println(“i=”+i); What is the result?()