Explain Codes LogoExplain Codes Logo

Java

Difference between String replace() and replaceAll()

java
regex-patterns
performance-optimization
best-practices

How can I add a filter class in Spring Boot?

java
filter-registration
spring-boot
filter-chain

How do I tell Spring Boot which main class to use for the executable jar?

java
spring-boot
maven
gradle

How to get VM arguments from inside of Java application?

java
runtime-management
jvm-arguments
system-properties

String replacement in java, similar to a velocity template

java
string-replacement
template-engineering
java-8

Replacements for Deprecated JPMS Modules with Java EE APIs

java
java-ee
jakarta-ee
maven-coordinates

How to add reference to a method parameter in Javadoc?

java
javadoc
best-practices
documentation

What is “the inverse side of the association” in a bidirectional JPA OneToMany/ManyToOne association?

java
encapsulation
performance
orm

String variable interpolation in Java

java
string-interpolation
string-format
text-blocks

Java: Multiple class declarations in one file

java
best-practices
class-organization
java-11

Is there a way to automatically generate getters and setters in Eclipse?

java
code-snippets
lombok
getter-setter

Are getters and setters poor design? Contradictory advice seen

java
best-practices
design-patterns
encapsulation

Recommended way to get hostname in Java

java
network-infrastructure
hostname-retrieval
java-library

Intellij Idea: Importing Gradle project - getting JAVA_HOME not defined yet

java
intellij-idea
gradle
java-home

Difference between null and empty ("") Java String

java
null-safety
string-manipulation
java-best-practices

How can I resolve the error "The minCompileSdk (31) specified in a dependency's AAR metadata" in native Java or Kotlin?

java
gradle
android-sdk
dependency-management

Random Shuffling of an Array

java
shuffle-algorithm
randomness
bias

Does Java have a complete enum for HTTP response codes?

java
http-status-codes
enum
best-practices

Nullpointerexception in Java with no StackTrace

java
null-pointer-exception
jvm-optimization
exception-handling

Spring MVC: How to perform validation?

java
prompt-engineering
validation
spring-mvc