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
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
package top.sub; public class A {}
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
b d and f In a the file Aclass will be placed ... View full answer
Get step-by-step solutions from verified subject matter experts
