Administrator

Lokesh Gupta

A fun-loving family man, passionate about computers and problem-solving, with over 15 years of experience in Java and related technologies. An avid Sci-Fi movie enthusiast and a fan of Christopher Nolan and Quentin Tarantino.

Website: https://howtodoinjava.com

Github: https://github.com/lokeshgupta1981/

Twitter: @HowToDoInJAVA

LinkedIn: https://www.linkedin.com/in/lokeshgupta1981/

My Articles:

Guide to Java Concurrency

The backbone of Java concurrency are threads. A thread is a lightweight process with its own call stack but can access shared data of others.

Intoduction to Java Collections

A collection is a group of objects. Java Collections framework consists of classes and interfaces to work with lists, sets, maps and queues.

Java Collection Tutorials

This Java guide will take us through Java Collections framework. We will understand the core concepts and performing the basic operations.

Java List

Lists are the core building blocks of the Collections framework. These tutorials will teach us the basics of different List classes in Java.

Java Map

Maps in Java are the core building blocks of the Collections framework. These tutorials will teach the basics of working with different maps.

Java Versions and Features [Updated upto Java 22]

On this page, we will frequently list the major feature changes in the latest Java release, sequentially. Though we have tried to cover as much information as possible, if you know something we have missed below, please let me know, and we will add that information. Java 22 Features Java …

Creating a Web Scrapper in Java

Learned to create a web scrapper in Java. This demo application introduces various components needed to create a working web scrapper.

REST API Testing with REST-assured

Learn to use REST-assured library to write automated tests for REST API testing with examples, specially useful in BDD style development.

Guide to Java ConcurrentMap

ConcurrentMap is an interface in Java Collections and used to create a thread-safe Maps. It stores the key-value pairs in a synchronized way.

How To Debug Java Streams

Debugging Java streams can be challenging. In this post, learn to debug streams as their elements are processed in the chained method calls.

Java Virtual Threads: Project Loom

In Java, Virtual threads (JEP-425) are JVM managed light-weight threads that will help in writing high throughput concurrent applications.

TestNG Tutorials

TestNG is a test automation framework inspired by JUnit. It can be used for unit testing, functional, integration, and end-to-end testing.

Spring Boot Tutorial

Learn Spring Boot with the following in-depth tutorials, covering from basic to advanced concepts such as packaging and monitoring.

Guide to Mock APIs with WireMock

The microservices architecture allows us to develop, test and deploy different components of an application independently. Though such a component can be developed independently, testing this in isolation can be challenging. For a true integration testing of a microservice, we must test its interaction with other APIs. WireMock helps in …

Spring Boot Profiles

Learn about Spring profiles, @Profile, profile-specific beans and properties, profile groups and activating a certain profile during startup.

Accessing Properties in Spring Boot

Learn to use @PropertySource, @Value and @ConfigurationProperties annotations to register property files and inject configuration properties.

Spring Security Context Propagation to Threads

Learn to pass the Spring SecurityContext instance to new threads either spawned by Spring @Async or created explicitly using new Runnable or Callable instances. 1. Default Strategy is ThreadLocal Once the AuthenticationManager completes the authentication process successfully, it stores the Authentication instance for the rest of the request in the …

Password Encoders in Spring Security

Learn the contract spring security expects from PasswordEncoder interface, inbuilt implementations and DelegatingPasswordEncoder with examples.

Java Logging

This Java logging series lists down all tutorials posted under logging frameworks such as Log4j2 and Logback, for quick references.

Log4j2 Tutorial

Log4j2 provides significant improvements over its predecessor Log4j. Read about its xml and properties configuration and various examples.

Java Array (with Examples)

A Java array is a container object that holds a fixed number of homogeneous values (of a single type) in a contiguous memory location.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.