exam questions

Exam 1z0-803 All Questions

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

Exam 1z0-803 topic 1 question 19 discussion

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

Given:

What three modifications, made independently, made to class greet, enable the code to compile and run?

  • A. line 6 replaced with handy.dandy.keystroke stroke = new KeyStroke ( );
  • B. line 6 replaced with handy.*.KeyStroke = new KeyStroke ( );
  • C. line 6 replaced with handy.dandy.KeyStroke Stroke = new handy.dandy.KeyStroke();
  • D. import handy.*; added before line 1
  • E. import handy.dandy.*; added after line 1
  • F. import handy.dandy,KeyStroke; added after line 1
  • G. import handy.dandy.KeyStroke.typeException(); added before line 1
Show Suggested Answer Hide Answer
Suggested Answer: CEF 🗳️
Three separate solutions:
C: the full class path to the method must be stated (when we have not imported the package)
D: We can import the hold dandy class
F: we can import the specific method

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
Temilaw25
3 years, 4 months ago
For option F, change the comma ',' to dot.
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