Explain Codes LogoExplain Codes Logo

Java

When and how should I use a ThreadLocal variable?

java
thread-local
java-threading
thread-safety

Iterating through a Collection, Avoiding ConcurrentModificationException When Removing Objects in a Loop

java
concurrentmodificationexception
iterator
removeif

Is there a concise way to iterate over a stream with indices in Java 8?

java
stream-engineering
java-8
best-practices

Interview question: Check if one string is a rotation of other string

java
algorithm-implementation
performance-optimization
best-practices

Sort ArrayList of custom Objects by property

java
sorting
comparator
lambda

Java synchronized method lock on object, or method?

java
synchronized-methods
thread-safety
atomic-variables

Eclipse error: "The import XXX cannot be resolved"

java
eclipse-error
import-problems
maven-dependencies

Can someone explain mappedBy in JPA and Hibernate?

java
jpa
hibernate
best-practices

Custom thread pool in Java 8 parallel stream

java
parallel-execution
thread-pool
java-8

Determine which JAR file a class is from

java
class-loading
java-8
reflection

Using regular expressions to extract a value in Java

java
regex
pattern-engineering
performance

Intellij IDEA Java classes not auto compiling on save

java
intellij-idea
compilation
best-practices

Why doesn't java.util.Set have get(int index)?

java
collections
data-structures
best-practices

Iterating over and removing from a map

java
concurrentmodificationexception
lambda-expressions
map-modification

Why should I use the keyword "final" on a method parameter in Java?

java
best-practices
code-readability
immutability

How to call a SOAP web service on Android

java
android-soap
xml-parsing
httpclient

Converting Integer to String with comma for thousands

java
number-formatting
locale-preferences
decimalformat

What is the "owning side" in an ORM mapping?

java
orm-mapping
database-design
entity-relationship

Base64 Java encode and decode a string

java
base64-encoding
java-8
best-practices

What is a Maven artifact?

java
maven-coordinates
dependency-resolution
build-process