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:

package top.sub; public class A {}

and the following directory hierarchy:

image text in transcribed

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

1 Expert Approved Answer
Step: 1 Unlock

b d and f In a the file Aclass will be placed ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!