exam questions

Exam 1z0-816 All Questions

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

Exam 1z0-816 topic 1 question 3 discussion

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

Given the declaration:

Examine this code fragment:
/* Loc1 */ class ProcessOrders { ... }
Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)

  • A. @Resource(priority=100)
  • B. @Resource(priority=0)
  • C. @Resource(name=“Customer1”, priority=100)
  • D. @Resource(name=“Customer1”)
  • E. @Resource
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

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
Aashish092087
6 months, 2 weeks ago
Correct Answer: CD
upvoted 1 times
...
lenicoulibaly
1 year ago
Selected Answer: CD
C and D are correct because both of them provide a value to the name property which is the only required property for the @Resource annotation AB and E result in compilation error because they do not give a value to the name property wich is a mandatory property unlike priority which has a default value
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