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)- B77% (17)
- C14% (3)
- D5% (1)
- F5% (1)
Community Discussion
No community discussion yet for this question.