Explain Codes LogoExplain Codes Logo

Java

Why does my Spring Boot App always shutdown immediately after starting?

java
interview-preparation
best-practices
debugging

Increase heap size in Java

java
jvm-tuning
heap-optimization
garbage-collection

How to use null in switch

java
null-handling
pattern-matching
switch-expressions

How can I get a resource content from a static context?

java
singleton
memory-leaks
resource-management

Set time to 00:00:00

java
date-formatting
time-zone
java-time-api

Does Spring Data JPA have any way to count entities using method name resolving?

java
spring-data-jpa
method-name-resolving
count-queries

Accept server's self-signed SSL certificate in Java client

java
ssl
truststore
trustmanager

What does it mean to hydrate an object?

java
object-relational-mapping
hydration
orm

What is the best way to tell if a character is a letter or number in Java without using regexes?

java
character-validation
string-manipulation
conditional-statements

How to use JUnit to test asynchronous processes

java
async-testing
junit
test-automation

Mockito - NullpointerException when stubbing Method

java
mockito
unittesting
best-practices

Lombok added but getters and setters not recognized in Intellij IDEA

java
intellij-idea
lombok
annotation-processing

How do you format the day of the month to say "11th", "21st" or "23rd" (ordinal indicator)?

java
date-formatting
java-time
unit-testing

Java HTTPS Client Certificate Authentication

java
ssl-context
https-client
client-certificates

Generating a Random Number between 1 and 10 in Java

java
random-number-generation
java-utility-classes
performance-optimization

How do I fix a NoSuchMethodError?

java
reflection
inheritance
best-practices

How to sort List of objects by some property

java
comparator
sorting
java-8

How to convert Strings to and from UTF8 byte arrays in Java

java
encoding
utf8
byte-arrays

Collections.emptylist() vs. new instance

java
immutability
singleton-pattern
best-practices

What is difference between Collection.stream().forEach() and Collection.forEach()?

java
stream-api
concurrent-modification
best-practices