Java 8 Stream API – Exception I
Java 8 Stream API – Exception I
In this part we will discuss a common exception that we may encounter when working with Streams in Java 8
Blog
I write about Java, software architecture, design patterns, applied artificial intelligence, RAG, AI agents and software engineering. Through my articles, I share feedback, technical analyzes and concrete approaches to design robust, maintainable and useful applications.
Java 8 Stream API – Exception I
In this part we will discuss a common exception that we may encounter when working with Streams in Java 8
Java – How to convert an Enumeration into a Stream?
Enumeration is an interface that was introduced in an older version of Java and is used to store a sequence of elements.An object that implements this interface generates a series of elements, one by one.Calling the nextElement method returns a successive element in the series.
Java Streams – Terminal Operations with Examples
In this article, we will learn terminal operations of Java Streams such as AnyMatch, Collectors, Count, FindAny, FindFirst, Min, Max, NoneMatch and AllMatch.
JPA/Hibernate – Embedding a Composite Primary Key (@Embeddable, @EmbeddedId)
In this example, we will learn how to embed a composite primary key, we will declare the IDs (primary key fields) as a separate class annotated with the @Embeddable annotation.A student is identified by its StudentCompositeId, which is defined by eleveId and class.
Keywords – JDK, JRE And JVM, What is it?
JDK, JRE and JVM are the three most important keywords that are often heard in Java programming language and even many Java developers fail to differentiate between them or think that they are the same.At the end of this article, we will know the answers
Spring Security – WebSecurityConfigurerAdapter deprecated!
In this article, I would like to share how to get rid of the warning saying “WebSecurityConfigurerAdapter is deprecated” in a Spring based application with Spring Security.
Secure your API Gateway with Json Web Tokens (JWT)
Spring recently released an update for microservices applications, and this update is a Spring Cloud Gateway that sits in front of all your microservices and accepts requests and then redirects them to the corresponding service. It’s handy to add a layer of security here, so that if a […]