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?()
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
public class Test { public static void main (String args) { class Foo { public int i = 3; } Object o = (Object) new Foo(); Foo foo = (Foo)o; System.out.printIn(foo. i); } } What is the result?()
public class Test { public static void main (String [] args) { string foo = “blue”; string bar = foo; foo = “green”; System.out.printIn(bar); } } What is the result?()
int index = 1; String [] test = new String[3]; String foo = test[index]; What is the result?()
What creates the appropriate DateFormat object and adds a day to the Date object?()
广告位招租 联系QQ:5245112(WX同号)
关于我们 | 付款方式 | 广告联系 | 联系我们 | 网站地图 | 网站申明 | 友情链接 | 网站招聘 | 帮助中心
版权所有©考试资料网(ppkao.com) 长沙求知信息技术有限公司 All Rights Reserved
扫一扫免费做题