Explain Codes LogoExplain Codes Logo

Java

"implements Runnable" vs "extends Thread" in Java

java
concurrency
threading
best-practices

Turning Sonar off for certain code

java
sonarqube
suppression
annotations

What's the difference between Instant and LocalDateTime?

java
time-management
java-8
best-practices

Convert LocalDateTime to LocalDateTime in UTC

java
datetime
utility-class
date-formatting

How to define a List bean in Spring?

java
bean-definition
spring-config
list-bean

Unable to execute dex: GC overhead limit exceeded in Eclipse

java
memory-management
eclipse-configuration
performance-optimization

Jackson Enum Serializing and Deserializing

java
enum-serializing
jackson-serialization
custom-serializers

Test if object implements interface

java
reflection
instanceof
polymorphism

How to Convert ASCII Code (0-255) to its Corresponding Character?

java
prompt-engineering
functions
best-practices

How to include variables within strings?

java
string-formatting
variable-inclusion
java-advanced-techniques

Adding header to all request with Retrofit 2

java
network-operations
interceptors
header-management

How to check if my string is equal to null?

java
null-safety
string-manipulation
best-practices

Spring MVC: Complex object as GET @RequestParam

java
spring-mvc
dto-classes
data-binding

Convert Enumeration to a Set/List

java
enumeration-to-set
java-8
best-practices

Remove all occurrences of char from string

java
string-manipulation
java-8-features
string-builder

What is a good use case for static import of methods?

java
best-practices
readability
testing

Ignore duplicates when producing map using streams

java
stream-processing
java-8
best-practices

Returning a Void object

java
generics
null-object-pattern
optional

Find first element by predicate

java
lazy-evaluation
optional
stream-api

Get integer value of the current year in Java

java
time-pitfalls
java-8
best-practices