---
title: "Alok Dubey (@alokdubey) | Hashnode"
description: "Java Enthusiast. Read the latest articles by Alok Dubey on Hashnode."
url: "https://hashnode.com/@alokdubey"
---

@alokdubey

# Alok Dubey

@alokdubey · Joined February 2024

Java Enthusiast

[Website](https://javaprepzone.blogspot.com/)

### [Speed Up API Calls with Java's HttpClient](https://alokdubey.hashnode.dev/java-httpclient-sendasync?utm_source=hashnode&utm_medium=feed)

While integrating with an external service, I needed to make high-volume API calls as efficiently as possible. The service responds in under 10ms, and blocking threads would slow everything down.To solve this, I used Java's built-in HttpClient and it...

2 min read · [alokdubey.hashnode.dev](https://alokdubey.hashnode.dev/java-httpclient-sendasync?utm_source=hashnode&utm_medium=feed)

[Mar 31, 2025](https://hashnode.com/posts/java-httpclient-sendasync/67ea7ae5a8d1c447e580397f)

### [Exploring Python's Concise Syntax](https://alokdubey.hashnode.dev/exploring-pythons-concise-syntax?utm_source=hashnode&utm_medium=feed)

Let's see some examples of Python's concise syntax. List Comprehension List comprehension provides a compact way to create lists based on existing lists. Let's say we want to generate a list containing even numbers till 10. With For Loop: even\_number...

1 min read · [alokdubey.hashnode.dev](https://alokdubey.hashnode.dev/exploring-pythons-concise-syntax?utm_source=hashnode&utm_medium=feed)

[Mar 13, 2024](https://hashnode.com/posts/exploring-pythons-concise-syntax/65f1fa733f98c110581a25d7)

### [Exploring SequencedCollection in Java 21](https://alokdubey.hashnode.dev/exploring-sequencedcollection-in-java-21?utm_source=hashnode&utm_medium=feed)

With the introduction of SequencedCollection in Java 21, interfaces like List and Deque now directly extend SequencedCollection, which in turn extends the Collection interface. This ensures uniformity across implementations for operations such as acc...

2 min read · [alokdubey.hashnode.dev](https://alokdubey.hashnode.dev/exploring-sequencedcollection-in-java-21?utm_source=hashnode&utm_medium=feed)

[Feb 17, 2024](https://hashnode.com/posts/exploring-sequencedcollection-in-java-21/65d0ee0511f69ae2c97d2224)

### [Sorting a List of Objects in Java: A Configurable Approach with Comparator and Enums](https://alokdubey.hashnode.dev/sorting-a-list-of-objects-in-java-a-configurable-approach-with-comparator-and-enums?utm_source=hashnode&utm_medium=feed)

In this article, I have shown a way to sort a list of Employee object based on a specific field and the sorting order using Comparator. The code snippet shows that the sorting criteria are configurable, eliminating the need to add an if/else block wh...

2 min read · [alokdubey.hashnode.dev](https://alokdubey.hashnode.dev/sorting-a-list-of-objects-in-java-a-configurable-approach-with-comparator-and-enums?utm_source=hashnode&utm_medium=feed)

[Feb 13, 2024](https://hashnode.com/posts/sorting-a-list-of-objects-in-java-a-configurable-approach-with-comparator-and-enums/65cb0c133cceb1e38bb72590)
