

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
It is assumed that your localhost is connected to the internet and capable enough to send an email. |
A. | True |
B. | False |
Answer» B. False | |
2. |
If it is required to provide user ID and Password to the email server for authentication purpose then you can set properties: |
A. | props.setProperty( mail.user , myuser ) |
B. | props.setProperty( mail.password , mypwd ) |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
3. |
To set content whose second argument is text/html to specify that the HTML content is included in the message. |
A. | setContent |
B. | content |
C. | setMail |
D. | none of the mentioned |
Answer» B. content | |
4. |
void addRecipients(Message.RecipientType type, Address[] addresses)
|
A. | ntype: This would be set to:- |
B. | TO |
C. | CC |
D. | BCC |
E. | All of the mentioned |
Answer» E. All of the mentioned | |
5. |
If you want to send an email to multiple recipients:- |
A. | void addRecipients(Message.RecipientType type, Address[] addresses) |
B. | void addRecipients(Message.RecipientType type) |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» B. void addRecipients(Message.RecipientType type) | |
6. |
To send an email using your Java Application:- |
A. | JavaMail API |
B. | Java Activation Framework (JAF) |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |