exam questions

Exam 1z0-829 All Questions

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

Exam 1z0-829 topic 1 question 39 discussion

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

Given:
and

Which two should the module-info file include for it to represent the service provider interface? (Choose two.)

  • A. exports com.transport.vehicle.cars;
  • B. provides com.transport.vehicle.cars.impl.CarImpl to com.transport.vehicle.cars.Car;
  • C. requires com.transport.vehicle.cars.Car;
  • D. exports com.transport.vehicle.cars.Car;
  • E. requires com.transport.vehicle.cars;
  • F. exports com.transport.vehicle;
  • G. provides com.transport.vehicle.cars.Car with com.transport.vehicle.cars.impl.CarImpl;
Show Suggested Answer Hide Answer
Suggested Answer: AG 🗳️

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
SrinivasJasti
2 weeks, 1 day ago
Selected Answer: AG
A --> You need to export the package where the service interface (Car) is located, G---> This line specifies that CarImpl provides the service Car in correct order
upvoted 1 times
...
azdan
4 months, 3 weeks ago
Selected Answer: AG
requires must be module name only
upvoted 2 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