ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

57 / 72

Question 57:

Given the following class definition with numbered lines: 
image
How do you specify to use this mock CDI bean implementation instead of the regular implementation class? 

Answer options:

A. Use the alternatives element in the beans.xml file and specify the class name in the class element within it.
B. Start up the server with the optional ""alternative command-line option, specifying any alternative class names in a comma-separated list.
C. Reorder the implementation names in the beans.xml file such that the desired alternative is listed earlier.
D. Delete the regular implementation class from the WAR.