nerdexam
Oracle

1Z0-860 · Question #21

1Z0-860 Question #21: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #21. The question stem and answer options stay visible for context.

Question

Given this code snippet from a JMS message-driven bean class X: 11. public XQ { System, out. print("1 "); } 12. public void onMessagefMessage m) throws Java. rmi. RemoteException 13. try { 14. TextMessage tm = (TextMessage) m; 15. String text = tm.getText0; 16. System, out. print("2 "); 17. } catch (JMSException e) { 18. throw new java. rmi. RemoteExceptionQ; 19.} 20.} When this bean class handles a message, which is correct?

Options

  • AAfter a message delivery the result is 1.
  • BAfter a message delivery the result is 2.
  • CAfter a message delivery the result is 12.
  • DAfter a message delivery an exception is thrown.
  • EAfter a message delivery the result is unpredictable.
  • FThis is NOT an EJB 3.0 compliant bean.

Unlock 1Z0-860 to see the answer

You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-860 Practice