exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 217 discussion

Actual exam question from Oracle's 1z0-808
Question #: 217
Topic #: 1
[All 1z0-808 Questions]

Examine the content of App.java:

Which is true?

  • A. The App.class file is stored within the p1 folder. The Test.class file is stored within the p2 sub-folder of p1.
  • B. The App class is accessible within the Test class without an import statement.
  • C. import p1.App; is used to access the App class within the Test class.
  • D. It is optional to have the package statement as the first line of class definitions.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Syyyyyyyy
4 months, 3 weeks ago
Selected Answer: C
A is incorrect because source code is .java, not .class.
upvoted 2 times
...
Jess1985B
8 months, 2 weeks ago
A should be correct.
upvoted 1 times
...
ManuTov
9 months, 3 weeks ago
What for would you wanted import p1.App that contains main method into Test class? question doesn't any sense to me.
upvoted 1 times
...
iSnover
1 year, 9 months ago
Selected Answer: C
I really didn't understand the purpose of the question, the same question which of the alternatives is true, but the letters A, C and D are correct and I still tested it just in case. Answer B is the only one that is wrong because to use the app class inside Test you need to do the import because they are in different packages... Now if the question refers to which answer fits the context of the utterance, it would mark answer C. NOTE: Following this logic, for the sake of conscience, I would mark the one that has more to do with the context, because it would be "the most correct".
upvoted 4 times
notreply
10 months, 4 weeks ago
D is also wrong, in this context.
upvoted 1 times
...
...
shivkumarx
1 year, 10 months ago
Why is A not considered true?
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago