public class Test {} What is the prototype of the default constructor?()
A. Test() B. Test(void) C. public Test() D. public Test(void) E. public void Test()
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?()
A. finished B. Exception C. Compilation fails. D. Arithmetic Exception
int i = 0; while (true) { if(i==4) { break; } ++i; } System.out.println(“i=”+i); What is the result?()
A. i = 0 B. i = 3 C. i = 4 D. i = 5 E. Compilation fails.