ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

13 / 72

Question 13:

Given the code fragment: 
image
And - 
image
Which two steps, when performed independently, enable the index.xhtml page to print the following text: The Id is 12345? (Choose two.) 

Answer options:

A. Replace line 2 with: @Inject public void setAcc(Account acc)
B. Replace line 3 with: @Inject public Account getAcc()
C. Replace line 1 with: @Inject private Account acc;
D. Replace line 3 with: public @Inject Account getAcc()
E. Replace line 1 with: private @Inject Account acc;
F. Replace line 2 with: public void setAcc(@Inject Account acc)