nerdexam
GIAC

GSSP-JAVA · Question #250

Mark works as a Programmer for InfoTech Inc. He wants to develop a JMS API application that is used as a messaging service application. He writes the following createSession() method. session =…

The correct answer is A. The client acknowledges a consumed message by calling the message's acknowledge E. If a message consumer consumes eight messages and then acknowledges the fourth. See the full explanation below for the reasoning.

Question

Mark works as a Programmer for InfoTech Inc. He wants to develop a JMS API application that is used as a messaging service application. He writes the following createSession() method. session = connection.createSession(false, 2); Which of the following statements are true about the syntax? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AThe client acknowledges a consumed message by calling the message's acknowledge
  • BThe acknowledge method can reduce session overhead by minimizing the work the
  • CThis method instructs the session to lazily acknowledge the delivery of messages.
  • DThe session automatically acknowledges a client's receipt of a message.
  • EIf a message consumer consumes eight messages and then acknowledges the fourth

How the community answered

(36 responses)
  • A
    72% (26)
  • B
    8% (3)
  • C
    3% (1)
  • D
    17% (6)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice