nerdexam
Oracle

1Z0-815 · Question #38

Given: /code/a/Test.java containing: and /code/b/Best.java containing: package b; public class Best { } Which is the valid way to generate bytecode for all classes?

The correct answer is E. javac -d /code /code/a/Test.java /code/b/Best.java. See the full explanation below for the reasoning.

Question

Given:

/code/a/Test.java containing:

and /code/b/Best.java containing:

package b; public class Best { } Which is the valid way to generate bytecode for all classes?

Exhibit

1Z0-815 question #38 exhibit

Options

  • Ajava /code/a/Test.java
  • Bjavac -d /code /code/a/Test
  • Cjava /code/a/Test.java /code/b/Best.java
  • Djava -cp /code a.Test
  • Ejavac -d /code /code/a/Test.java /code/b/Best.java
  • Fjavac -d /code /code/a/Test.java

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    12% (4)
  • D
    6% (2)
  • E
    76% (25)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice