Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 53

Your class requires multiple resources defined, as shown in the following:

Which annotation do you use to group multiple @Resource declarations together for class-based injection, replacing in the code above?

    Correct Answer: A

    In Java EE, when you need to define multiple resources for class-based injection, the correct annotation to group multiple @Resource declarations together is @Resources. The @Resources annotation allows you to specify an array of @Resource annotations, enabling you to inject multiple resources easily.

Discussion
zee2021Option: A

A is true !

pedrolimaOption: A

A is true explanation @ https://docs.oracle.com/javaee/6/tutorial/doc/bncjk.html

devmsalehOption: A

A is the correct answer

orjavaOption: A

Answer A. Multiple resources can be defined together using @javax.annotation.Resources annotation