System.out.print(12+3)的输出结果是( )
class java {
public static void main(String [] java) {
for (int Java = 1; Java 〈 java.length; Java++)
System.out.print("java ");
}
}
和命令行:
java java java java java
结果为:()
public class X {
public static void main(String [] args) {
try {
badMethod();
System.out.print(“A”);
}
catch (RuntimeException ex) {
System.out.print(“B”);
}
catch (Exception ex1) {
System.out.print(“C”);
}
finally {
System.out.print(“D”);
}
System.out.print(“E”);
}
public static void badMethod() {
throw new RuntimeException();
}
}
What is the result?()
免费的网站请分享给朋友吧