Given the code fragment:
What is the result?
A. A compilation error occurs at line n1.
B. courseJava
C. Javacourse
D. A compilation error occurs at line n2.
Given the code fragment:
What is the result?
A. A compilation error occurs at line n1.
B. courseJava
C. Javacourse
D. A compilation error occurs at line n2.
D
Stack trace:
Exception in thread “main” java.lang.Error: Unresolved compilation problem:
The method apply(String) in the type Function is not applicable for the arguments (StringBuffer)
at code.tests.JZ809V1.Testing3.main(Testing3.java:11)
D, tested
D
D