nerdexam
Oracle

1Z0-804 · Question #2

Which four are syntactically correct?

The correct answer is B. package abc; E. package abc; G. import java.util.*; H. package abc. See the full explanation below for the reasoning.

Question

Which four are syntactically correct?

Options

  • Apackage abc;
  • Bpackage abc;
  • Cpackage abc;
  • Dimport Java.util.*;
  • Epackage abc;
  • Fpublic class Test{}
  • Gimport java.util.*;
  • Hpackage abc;

How the community answered

(22 responses)
  • B
    77% (17)
  • C
    14% (3)
  • D
    5% (1)
  • F
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice