Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Java Mail Interview Questions and Answers

Question: What is Authenticator in JavaMail api?
Answer: The JavaMail Authenticator is found in the javax.mail package, and used as an authenticator to access protected resources by prompting the user for username and password.

Properties props = new Properties();
Authenticator auth = new MyAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook