Let's take a look at this example again: How to get Ping Status of any HTTP End Point in Java? Have you noticed the thread execution for that example?