exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 94 discussion

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

Given the code fragments:

Which modification enables the code to compile?
A.

B.

C.

D.

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
af8c3f3
4 months, 2 weeks ago
Tested on IDE, both A and C are correct.
upvoted 1 times
...
7df49fb
10 months, 2 weeks ago
C : A is needed in class B; A and B are needed in class C
upvoted 1 times
...
DarGrin
1 year, 3 months ago
Answer is C, agree
upvoted 1 times
...
dsms
1 year, 5 months ago
correct answer A !!!!!! import p1.*; import p1.p2.*;
upvoted 2 times
yanoolthecool
1 year, 1 month ago
nah man, read it again, class C need 2 imports in answer A it only mentions 'import p1.p2.*;' in class C, which will give problem in detecting class A
upvoted 1 times
...
...
IbrahimAlnutayfi
1 year, 7 months ago
The answer is C
upvoted 1 times
...
iSnover
2 years, 3 months ago
The answer is the letter C. You don't need to explain much because the other alternatives are very wrong. But it's worth remembering that when we use * we import all the classes in the package but we don't import the classes of the sub-packages. Having this concept the others are wrong
upvoted 4 times
Kolodets
1 year, 9 months ago
good tip
upvoted 1 times
...
ManuTov
1 year, 5 months ago
I do not understand p1. p2.B ?? I only see p2.B or p2.*
upvoted 1 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