Given the source file A.java: and the following directory hierarchy: Assuming that the current directory is /proj/src,
Question:
Given the source file A.java:
and the following directory hierarchy:
Assuming that the current directory is /proj/src, which of the following statements are true? Select the three correct answers.
(a) The following command will compile, and place the bytecode of the class top.sub.A under /proj/bin: javac -d . top/sub/A.java
(b) The following command will compile, and place the bytecode of the class top.sub.A under /proj/bin: javac -d /proj/bin top/sub/A.java
(c) The following command will compile, and place the bytecode of the class top.sub.A under /proj/bin: javac -D /proj/bin ./top/sub/A.java
(d) The following command will compile, and place the bytecode of the class top.sub.A under /proj/bin: javac -d ../bin top/sub/A.java
(e) After successful compilation, the absolute pathname of the file A.class will be: /proj/bin/A.class
(f) After successful compilation, the absolute pathname of the file A.class will be: /proj/bin/top/sub/A.class
Step by Step Answer:
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen