单项选择题
Given the following directory structure:
And the following command line invocation:
javac –d classes source/Utils.java
Assume the current directory is bigProject, what it the result?()
A.If the compile is successful, Utils.class is added to the source directory.
B.The compiler returns an invalid flag error.
C.If the compile is successful, Utils.class is added to the classes directory.
D.If the compile is successful, Utils.class is added to the bigProject directory.
相关考题
-
单项选择题
Which code, inserted at line 16, will cause a java.lang.ClassCastException?()
A.Alpha a=x;
B.Foo f=(Delta)x;
C.Foo f=(Alpha)x;
D.Beta b=(Beta)(Alpha)x; -
单项选择题
What is the result?()
A.Canada
B.null Canada
C.Canada null
D.Canada Canada
E.Compilation fails due to an error on line 26.
F.Compilation fails due to an error on line 29. -
单项选择题
Which is true?()
A.if line 10 is removed, the compilation succeeds.
B.if line 11 is removed, the compilation succeeds.
C.if line 12 is removed, the compilation succeeds.
D.if line 13 is removed, the compilation succeeds.
E.More than one line must be removed for compilation to succeed.
