Question: Given the following directory structure: Assume that the current directory is /proj/src. Which class path specifications will find the file A.class of the class top.sub.A

Given the following directory structure:

/proj src 1- bin 1- A.java 1- top - sub 1- A.class

Assume that the current directory is /proj/src. Which class path specifications will find the file A.class of the class top.sub.A declared in the file /proj/src/A.java?
Select the two correct answers.

(a) -cp /proj/bin/top

(b) -cp /proj/bin/top/sub

(c) -cp /proj/bin/top/sub/A.class

(d) -cp .:../bin

(e) -cp /proj

(f) -cp /proj/bin

/proj src 1- bin 1- A.java 1- top - sub 1- A.class

Step by Step Solution

3.46 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

d and f The parent directory or location of the pa... 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!