Quiz

1:When sending mail, which of the following is the proper sequence of working with classes?
  1. Session, Authenticator, Message, Transport

  2. Authenticator, Message, Session, Transport

  3. Authenticator, Session, Message, Transport

  4. Session, Transport, Message, Authenticator

A1: A
2:When forwarding a message, you need to
  1. Create a new message from the original message, and copy over its content.

  2. Create a multipart message, and construct two parts—one for the text message and one for the original message—and combine them together.

  3. Create a blank message and copy the original content over.

  4. Use the original message object and set its new recipients.

A2: A
3:When retrieving an e-mail message, which of the following is the proper order of working with classes?

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.