Explain Codes LogoExplain Codes Logo

Java

Jax-rs / Jersey how to customize error handling?

java
exception-handling
error-response
exception-mappers

How do I prevent the modification of a private field in a class?

java
defensive-coding
immutability
null-safety

How to test that no exception is thrown?

java
assertions
junit
test-coverage

Gson - Date format

java
date-format
gson
custom-date-time-handling

Double vs. BigDecimal?

java
precision-engineering
best-practices
financial-applications

How to convert a Collection to List?

java
collections
performance
best-practices

Run jar file in command prompt

java
prompt-engineering
best-practices
performance

Intellij Organize Imports

java
intellij-ide
import-organization
coding-habits

How to use java.net.URLConnection to fire and handle HTTP requests

java
http-requests
java-8
httpclient

Where to get "UTF-8" string literal in Java?

java
constant-variables
string-literals
best-practices

Java Array Sort Descending

java
sorting
comparator
arrays

What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

java
best-practices
performance
tools

Programmatically Change Log Level in Log4j2

java
logging
log4j2
configurator

Create a GUID / UUID in Java

java
uuid
guid
java-uuid

Why do we usually use || over |? What is the difference?

java
defensive-programming
bitwise-operations
operator-precedence

Java8: HashMap to HashMap using Stream / Map-Reduce / Collector

java
map-reduce
collector
stream-processing

Difference between Java SE/EE/ME?

java
java-ee
java-se
mobile-development

Java 8 Distinct by property

java
prompt-engineering
functions
collections

Is there a Java equivalent or methodology for the typedef keyword in C++?

java
custom-classes
generics
design-patterns

How to use a Java8 lambda to sort a stream in reverse order?

java
lambda
stream
sorting