Free Oracle 1z0-900 Exam Questions (page: 5)

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

  1. Replace line 2 with: @Inject public void setAcc(Account acc)
  2. Replace line 3 with: @Inject public Account getAcc()
  3. Replace line 1 with: @Inject private Account acc;
  4. Replace line 3 with: public @Inject Account getAcc()
  5. Replace line 1 with: private @Inject Account acc;
  6. Replace line 2 with: public void setAcc(@Inject Account acc)

Answer(s): D,F



Given:


How often does the submitted task run?

  1. need more details to determine
  2. once
  3. as many times as you like
  4. based on a schedule

Answer(s): A



Given:


What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?

  1. @Stateless @PassivationCapable
  2. @Stateless
  3. @Stateful @PassivationCapable
  4. @Stateful

Answer(s): D


Reference:

https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln



Which URL represents an invalid approach to pass a parameter to a REST resource?

  1. <base-url>/Employees?value=1
  2. <base-url>/Employees&value=1
  3. <base-url>/Employees/1
  4. <base-url>/Employees;value=1

Answer(s): D



Viewing page 5 of 36



Post your Comments and Discuss Oracle 1z0-900 exam prep with other Community members:

1z0-900 Exam Discussions & Posts