多项选择题Which two code fragments are most likely to cause a StackOverflowError?()

A.
B.
C.
D.
E.
F.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

Given:

What is the result?()

A.The value "4" is printed at the command line.
B.Compilation fails because of an error in line 5.
C.Compilation fails because of an error in line 9.
D.A NullPointerException occurs at runtime.
E.A NumberFormatException occurs at runtime.
F.An IllegalStateException occurs at runtime.

2.单项选择题

Given:

What is the result?()

A.null
B.finally
C.null finally
D.Compilation fails.
E.finally exception

3.单项选择题

Given:

Which command-line invocations will compile?()

A.javac Mule.java
B.javac -source 1.3 Mule.java
C.javac -source 1.4 Mule.java
D.javac -source 1.5 Mule.java

4.单项选择题

Given:

What is the result?()

A.null
B.zero
C.some
D.Compilation fails.
E.An exception is thrown at runtime.

5.单项选择题

Given:

What is the result?()

A.B
B.B, followed by an Exception.
C.Compilation fails due to an error on line 9.
D.Compilation fails due to an error on line 14.
E.An Exception is thrown with no other output.

6.单项选择题

Given:

What is the result?()

A.6
B.7
C.10
D.11
E.Compilation fails.
F.An exception is thrown at runtime.

7.单项选择题

Given:

Which statement is true?()

A. Compilation succeeds.
B. Class A does not compile.
C. The method declared on line 9 cannot be modified to throw TestException.
D. TestA compiles if line 10 is enclosed in a try/catch block that catches TestException.