Question: Given the following directory structure: Assume that the two files A.java and B.java contain the following code, respectively: For which combinations of current directory and

Given the following directory structure:

/top |- wrk |- pkg 1- A.java |- B.java

Assume that the two files A.java and B.java contain the following code, respectively:

image text in transcribed

For which combinations of current directory and command is the compilation successful? Select the two correct answers.

(a)

image text in transcribed

(b)

image text in transcribed

(c)

image text in transcribed

(d)

image text in transcribed

(e)

image text in transcribed

(f)

image text in transcribed

/top |- wrk |- pkg 1- A.java |- B.java

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b and d In a and c class A cannot be found In e and f class B ... 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!