Delve into the distinctions between isEmpty() and isBlank() when working with Java Strings.
Also find me here:
Baeldung Author
Pedro Lopes
I'm a Software Engineer passionate about learning and teaching innovative tools and techniques for backend software development. My specialties are in the Java and AWS ecosystems. Particularly interested in high-performance computing, distributed systems, cloud technologies, and software architecture. Eager to help people and share helpful knowledge.
Here's what I've written (so far):
Baeldung on Java
- All
- Java (5)
- Spring (2)
- Testing (1)
- Spring Data (1)
- Spring Boot (1)
- Java String (1)
- Data (1)
Manage Kafka Consumer Groups
Learn about Kafka consumer groups and their role in enhancing scalability by enabling multiple consumers to read from the same topic in parallel.
Optional as a Record Parameter in Java
Filed under Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
Java Interface Naming Conventions
Filed under Java
This article summarizes naming conventions for Java interfaces, emphasizing the use of adjectives for capability interfaces and nouns for polymorphic interfaces. It provides a practical example and warns against patterns like IUser and UserImpl for code clarity. Adhering to these conventions enhances code readability and maintainability.
Understanding Kafka Topics and Partitions
Filed under Spring
Discover the power of partitions in Kafka topics and learn how to consume messages from partitioned topics using Spring Boot.
Gray Box Testing Using the OAT Technique
Filed under Testing
Gray Box testing is a statistical technique that allows us to test a lot of edge cases without testing every single possible permutation of input. We look at how it works and how to implement it with parameterized tests in JUnit.
@StandardException Annotation in Lombok
Filed under Java
This article introduces the @StandardException annotation in Java’s Lombok library that generates constructors for exception classes, avoiding writing duplicate code.
API First Development with Spring Boot and OpenAPI 3.0
Filed under Spring Boot
Discover API-First Development using Spring Boot and Open API Specification 3.0.
Difference Between findBy and findAllBy in Spring Data JPA
Filed under Spring Data
Learn the similarities between findBy and findAllBy in Spring Data JPA queries, and discover strategies to verify how Spring Data JPA is operating.
Check If All the Variables of an Object Are Null
Filed under Java
Explore the importance of checking for null variables in our Java classes.