Java

8 posts
2025

What's New in Java 25 (JDK 25)

Java 25 (JDK 25) is here — and it’s an LTS release. That means most vendors will support it for years, and many teams will plan …
Read more

Remove Duplicates from a Sorted Array — The Two-Pointer Technique

Removing duplicates from a sorted array is one of those problems that sounds trivial until you add the constraint: do it in-place, without …
Read more

Solving LeetCode's Valid Parentheses Problem with a Stack in Java

Some LeetCode problems feel like busy work. The Valid Parentheses problem is not one of them. It’s a clean, well-defined problem that …
Read more

@Component vs @Bean in Spring: When to Use Each

Spring’s dependency injection is powerful, but it gives you more than one way to register a bean with the container. Two of the most …
Read more

Spring Annotations: @Scheduling, @Async, @Component, @Service, @Configuration, @Bean

Spring’s annotation model can feel overwhelming at first. There are annotations for everything: creating beans, scheduling tasks, …
Read more

Spring Boot Layered Architecture: Controller, Service, and Repository

One of the first questions you face when building a Spring Boot application is how to organize your code. You could put everything in one …
Read more

C# vs Java: A Practical Comparison for 2025

Java and C# are often described as rivals — born from similar philosophical roots, shaped by massive corporate investments, and used in …
Read more

Why I Still Prefer Java Over Python

Java doesn’t have a great reputation for being lovable. It’s verbose. It requires a lot of ceremony. Oracle’s licensing …
Read more