Explain Codes LogoExplain Codes Logo

Java

What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?

java
class-loading
class-not-found-error
no-classdeffounderror

Access restriction: The type 'Application' is not API (restriction on required library rt.jar)

java
prompt-engineering
best-practices
tools

Calculating the sum of all numbers in an array in Java

java
stream-engineering
performance
best-practices

How to get 0-padded binary representation of an integer in java?

java
bitwise-manipulation
padding-techniques
binary-representation

Conditionally ignoring tests in JUnit 4

java
test-engineering
best-practices
promises

Recyclerview - Get view at particular position

java
recyclerview
viewholder
adapterposition

In Java, how do I convert a byte array to a string of hex digits while keeping leading zeros?

java
hex-conversion
byte-array
string-conversion

Java: Get first item from a collection

java
collections
best-practices
generics

Java function for arrays like PHP's join()?

java
functions
performance
best-practices

Trust Store vs Key Store - creating with keytool

java
ssl
tls
keytool

Is it possible to use the instanceof operator in a switch statement?

java
pattern-matching
type-checking
best-practices

What does a "Cannot find symbol" or "Cannot resolve symbol" error mean?

java
variable-scope
local-variable-type-inference
ide-integration

What is SuppressWarnings ("unchecked") in Java?

java
type-safety
generics
best-practices

Is there a common Java utility to break a list into batches?

java
list-partitioning
google-guava
stream-api

Spring RestTemplate - how to enable full debugging/logging of requests/responses?

java
logging
debugging
rest-template

Java integer to byte array

java
bitwise-operations
byte-array-conversion
endianness

How to get a resource id with a known resource name?

java
prompt-engineering
best-practices
reflection

Regex for matching something if it is not preceded by something else

java
regex-engineering
lookbehind
performance

How can I remove a substring from a given String?

java
string-manipulation
regex
stringbuffer

Rethrowing exceptions in Java without losing the stack trace

java
exception-management
best-practices
try-catch-blocks