javax.mail.Authenticator Example

javax.mail.Authenticator Example In this post under Java Mail, I will explain the use of Authenticator abstract class with an example. Note: For this example and other examples in future we need to have1) Gmail account2) GMail SMTP server address3) Stop the antivirus software running on your local.4) Create an application password. The steps are mentioned…… Continue reading javax.mail.Authenticator Example

ExclusionStrategy example during deserialization of object

In this post under Gson, I will explain how we can exclude certain fields of a json data from being deserialized with an example. Below is the Employee class structure that will be used to create an instance and its field are set with the values obtained from Employee.json file. Employee class public class Employee…… Continue reading ExclusionStrategy example during deserialization of object