Explain Codes LogoExplain Codes Logo

Java

Java Lombok: Omitting one field in @AllArgsConstructor?

java
lombok
constructor-annotations
field-initialization

Difference between ActionBarSherlock and ActionBar Compatibility

java
androidx
migration-guide
android-development

How to use Class<T> in Java?

java
generics
reflection
type-safety

Eclipse Java debugging: source not found

java
debugging
eclipse
java-debugging

Connectiontimeout versus SocketTimeout

java
network-communication
best-practices
async-programming

Disable a particular Checkstyle rule for a particular line of code?

java
checkstyle
suppressions
annotations

Why is it considered a bad practice to omit curly braces?

java
best-practices
code-readability
defensive-coding

How good is Java's UUID.randomUUID?

java
random-number-generation
uuid-uniqueness
rng-tests

What's up with Java's "%n" in printf?

java
printf
cross-platform
best-practices

What is the proper way to re-attach detached objects in Hibernate?

java
hibernate-entity-management
entity-states
detached-objects

How can I get the latest JRE / JDK as a zip file rather than EXE or MSI installer?

java
prompt-engineering
environment-variables
portability

Long vs Integer, long vs int, what to use and when?

java
primitive-types
memory-usage
performance

How to quit a Java app from within the program

java
shutdown-hooks
resource-management
thread-management

Should I always use a parallel stream when possible?

java
parallel-streams
thread-safety
performance-optimization

Throw checked Exceptions from mocks with Mockito

java
mockito
exception-handling
test-automation

Decode Base64 data in Java

java
base64-decoding
java-8
base64-encoding

How to read file from relative path in Java project? java.io.File cannot find the path specified

java
file-reading
relative-paths
classloader

Naming of enums in Java: Singular or Plural?

java
best-practices
naming-conventions
enums

How to replace case-insensitive literal substrings in Java

java
regex
performance
best-practices

Permgen elimination in JDK 8

java
jvm-tuning
memory-management
gc-performance