单选题Given: What is the result?()A  An exception is thrown at runtime.B  int LongC  Compilation fails.D  Short Long

题目
单选题
Given: What is the result?()
A

 An exception is thrown at runtime.

B

 int Long

C

 Compilation fails.

D

 Short Long

参考答案和解析
正确答案: A
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

正确答案:D

第2题:

public class Wow {  public static void go(short n) {System.out.println(”short”); }  public static void go(Short n) {System.out.println(”SHORT”);}  public static void go(Long n) {System.out.println(” LONG”); }  public static void main(String [] args) {  Short y= 6;  int z=7;  go(y);  go(z);  }  }  What is the result?() 

  • A、 short LONG
  • B、 SHORT LONG
  • C、 Compilation fails.
  • D、 An exception is thrown at runtime.

正确答案:C

第3题:

Given:What is the result when the go() method is invoked?()

A.00

B.0001

C.000120

D.00012021

E.Compilation fails.

F.An exception is thrown at runtime.


参考答案:C

第4题:

单选题
Given: What is the result?()
A

test

B

Exception

C

Compilation fails.

D

NullPointerException


正确答案: C
解析: 暂无解析

第5题:

单选题
Given: What is the result?()
A

collie

B

harrier

C

Compilation fails.

D

collie harrier

E

An exception is thrown at runtime.


正确答案: A
解析: 暂无解析

第6题:

public class Yikes {  public static void go(Long n) {System.out.println(”Long “);}  public static void go(Short n) {System.out.println(”Short “);}  public static void go(int n) {System.out.println(”int “);}  public static void main(String [] args) {  short y= 6;  long z= 7;  go(y);  go(z);  }  }  What is the result?() 

  • A、 int Long
  • B、 Short Long
  • C、 Compilation fails.
  • D、 An exception is thrown at runtime.

正确答案:A

第7题:

Given:   12. System.out.format("Pi is approximately %d.", Math.PI);   What is the result?()

  • A、 An exception is thrown at runtime.
  • B、 Pi is approximately 3.
  • C、 Pi is approximately 3.141593.
  • D、 Compilation fails.

正确答案:A

第8题:

Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()

  • A、 An exception is thrown at runtime.
  • B、 1
  • C、 4
  • D、 Compilation fails.
  • E、 0

正确答案:D

第9题:

单选题
Given: What is the result?()
A

r, t, t,

B

r, e, o,

C

Compilation fails.

D

An exception is thrown at runtime.


正确答案: B
解析: 暂无解析

第10题:

单选题
Given: What is the result?()
A

Compilation fails.

B

An exception is thrown at runtime.

C

The code executes normally and prints "sleep".

D

The code executes normally, but nothing is printed.


正确答案: D
解析: 暂无解析

更多相关问题