exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 201 discussion

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

Given the declaration:

@inteface Resource {
String value() default “Customer1”;
}

Examine this code fragment:

/* Loc1 */ class ProcessOrders { ... }

Which two annotations may be applied at Loc1 in the code fragment? (Choose two.)

  • A. @Resource(“Customer2”)
  • B. @Resource(value=“Customer2”)
  • C. @Resource
  • D. @Resource(val=“Customer2”)
  • E. @Resource({“Customer2”})
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
d7bb0b2
6 months, 4 weeks ago
Selected Answer: AC
ABC if anotation haved a other value and is not set by default for value an other field then is requierd especified the name of two elements
upvoted 1 times
...
ASPushkin
7 months ago
answer: ABC A) correct if there is just one element named value, then name can be omitted. B) correct C) correct default values can be omitted D) E) invalid syntax
upvoted 2 times
...
d7bb0b2
7 months ago
No options can be selected, 3 are valid: A : cause only one elemente called value B : cause explicit value C: cause has default value then can used withot pass anything
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