Java Core

Java Mail API- Reading OUTLOOK mails

Java

Java Mail API- Reading OUTLOOK mails Using JAVA Mail API for reading mails has been common these days. It’s pretty easy to use. Over the internet you can get boilerplate codes for reading mails from GMAIL or YAHOO, however I find a bit tricky when it comes to reading mails from OUTLOOK. GMAIL and YAHOO provides settings feature where you ... Read More »

Consider implementating compareTo and equals method

Java

Consider implementating compareTo and equals method Unlike the other methods the compareTo method is not declared in Object. Rather, it is the sole method in the Comparable interface. It is similar in character to Object’s equals method, except that it permits order comparisons in addition to simple equality comparisons, and it is generic. By implementing Comparable, a class indicates that ... Read More »

How to create an asynchronous HTTP call in JAVA

Java

This tutorial explains How to create an asynchronous HTTP call in JAVA. What is asynchronous HTTP call? Asynchronous HTTP Request call allows us to process a HTTP call using non-blocking I/O in seperate thread. The main use for Asynchronous HTTP call is where the client is calling a server with a delayed response, which may results in client blocking the ... Read More »