What is the easiest way to send and receive mails in java.
JavaMail is the traditional answer for sending email (as everyone's pointing out).
As you also want to receive mail, however, you should check out Apache James. It's a modular mail server and heavily configurable. It'll talk POP and IMAP, supports custom plugins and can be embedded in your application (if you so wish).