nerdexam
IBM

LOT-410 · Question #49

Steven is using Java to write an agent in his application and needs to get a handle to the database that the agent is running in. How can Steven accomplish this?

The correct answer is D. Use the Session class getAgentContext method, and then make a call to the getCurrentDatabase method. See the full explanation below for the reasoning.

Question

Steven is using Java to write an agent in his application and needs to get a handle to the database that the agent is running in. How can Steven accomplish this?

Options

  • AUse the getCurrentDatabase method of the Session class.
  • BUse the currentDatabase property of the Session class.
  • CUse the Session class getDatabase method, and then make a call to the getCurrentDatabase method of
  • DUse the Session class getAgentContext method, and then make a call to the getCurrentDatabase method

How the community answered

(33 responses)
  • A
    6% (2)
  • B
    9% (3)
  • C
    3% (1)
  • D
    82% (27)

Community Discussion

No community discussion yet for this question.

Full LOT-410 Practice