Explain Codes LogoExplain Codes Logo

Java

How can I generate a list or array of sequential integers in Java?

java
stream-engineering
java-8
performance

How can I determine whether a Java class is abstract by reflection

java
reflection
accessibility-insights
performance-perspective

How can I convert byte size into a human-readable format in Java?

java
byte-conversion
human-readable-format
java-utility-methods

How can I add to List<? extends Number> data structures?

java
generics
collections
best-practices

Hibernate vs JPA vs JDO - pros and cons of each?

java
orm-fundamentals
database-optimization
spring-integration

Hibernate: "Field 'id' doesn't have a default value"

java
hibernate-configuration
database-structure
orm-model

Hibernate - Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1

java
hibernate-configuration
logging-best-practices
transaction-management

Has been compiled by a more recent version of the Java Runtime (class file version 57.0)

java
unsupported-class-version-error
java-versions
jdk-versions

Hamcrest compare collections

java
assertions
collections
testing

Hadoop "Unable to load native-hadoop library for your platform" warning

java
native-libraries
hadoop-configuration
log-levels

Gson: Directly convert String to JsonObject (no POJO)

java
json-parsing
gson
json-object

Gradle: Could not determine java version from '11.0.2'

java
gradle
java-version
build-tools

Good Java graph algorithm library?

java
graph-algorithms
java-libraries
data-structures

Good example of Javadoc

java
javadoc
best-practices
java-8

Given final block not properly padded

java
padding
encryption
security

Get type of a generic parameter in Java with reflection

java
reflection
generics
type-erasure

Getting Java version at runtime

java
version-detection
runtime-class
java-versions

Getting java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory exception

java
class-not-found
logging
classpath

Get specific ArrayList item

java
indexing
null-checks
optional

Get last element of Stream/List in a one-liner

java
reduce
performance
best-practices