Explain Codes LogoExplain Codes Logo

Java

Implements vs extends: When to use? What's the difference?

java
inheritance
polymorphism
interfaces

Android, getting resource ID from string?

java
android-development
resource-management
performance-optimization

How to implement REST token-based authentication with JAX-RS and Jersey

java
jwt
authentication
authorization

Why is a ConcurrentModificationException thrown and how to debug it

java
concurrent-modification-exception
thread-safety
java-collections

How do I tell Maven to use the latest version of a dependency?

java
maven-plugin
dependency-management
build-stability

When to use static methods

java
singleton
best-practices
performance

Why am I getting Unknown error in line 1 of pom.xml?

java
maven
pom-xml
dependency-management

Mockito: Stubbing Methods That Return Type With Bounded Wild-Cards

java
mockito
generics
stubbing

How can I fix "unsupported class file major version 60" in IntelliJ IDEA?

java
gradle
intellij-idea
java-16

How can I unescape HTML character entities in Java?

java
html-entities
unescape
jsoup

How to retrieve a single entry from a HashMap without iterating

java
hashmap
performance
best-practices

Using Mockito with multiple calls to the same method with the same arguments

java
mockito
testing
stubbing

Limit a stream by a predicate

java
stream-engineering
java-8
performance

Find TODO tags in Eclipse

java
eclipse-productivity
todo-management
task-navigation

Recursively list files in Java

java
file-system
performance-optimization
java-nio

Safely casting long to int in Java

java
overflow-control
safe-casting
java-8

Adding up BigDecimals using Streams

java
prompt-engineering
functions
collections

How to connect to Oracle using Service Name instead of SID

java
connection-pooling
jdbc-driver
sql-exceptions

Http URL Address Encoding in Java

java
url-encoding
uri-class
java-encoding

Any shortcut to initialize all array elements to zero?

java
array-initialization
performance-optimization
best-practices