Exit 1Z0-900 Java EE 7 Application Developer
Question 1 of 5
0% complete
Q1 Multiple choice

Given the code fragment:

And

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

Select all that apply.

  • 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)

Previous Next