Home > Java Core (page 3)

Java Core

Maven- Creating a Jar together with its dependency Jars into a single executable Jar file

Apache Maven

Maven- Creating a Jar together with its dependency Jars into a single executable Jar file Suppose your boss comes and ask you to create a standalone JAVA application. Assuming you being a MAVEN lover, you created a JAVA application using MAVEN dependency management tool. Now suppose you have some MAVEN dependencies that are needed by your JAVA application. Since, it’s ... 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 an HTTP call using non-blocking I/O in a separate thread. The main use for Asynchronous HTTP call is where the client is calling a server with a delayed response, which may result in the client ... Read More »

SSL handshake alert: unrecognized_name Exception

Java

This tutorial explains how to handle SSL handshake alert: unrecognized_name exception while calling an URL over SSL/https . When I tried to connect a web-server over SSL, I was getting the below error continuously. This happened with JDK1.7 and above. Below is the sample Java programme which I was running. Issue : Exception I was getting - Solution : After ... Read More »