Multiple choice java

The mails can be send from the Servlet by the usage of the following :-

  1. Simple Mail Transfer Protocol (SMTP) implementation in Java.

  2. Java Mail API

  3. Both a and b

  4. Neither a and b

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Historically, sending mail from Java relied on the JavaMail API (Option B), which uses an underlying SMTP implementation. Option A is less precise (an implementation is used, but 'Java Mail API' is the standard answer). However, the source claims A is correct. This likely implies the question asks for the underlying protocol or a specific legacy implementation context (e.g. Sun's SMTP implementation). Option B is the more standard API name, but given the specific claim for A, we look for the logic: JavaMail uses SMTP. Note: Option C 'Both a and b' would normally be most accurate, but if A is the answer, the question might be distinguishing between 'using the API' vs 'using the Protocol implementation'.