Explain Codes LogoExplain Codes Logo

Java

How do I check if the Java JDK is installed on Mac?

java
java-8
javac
jdk-management

How to convert String to long in Java?

java
long-parse
number-formatting
error-handling

Strip Leading and Trailing Spaces From Java String

java
string-manipulation
java-11
regex

How to solve the “failed to lazily initialize a collection of role” Hibernate exception

java
lazy-loading
hibernate-exception
performance-optimization

Change private static final field using Java reflection

java
reflection
best-practices
security

Converting Java objects to JSON with Jackson

java
serialization
json-serialization
jackson-library

Why should one use Objects.requireNonNull()?

java
fail-fast
null-pointer-exceptions
best-practices

How does Junit @Rule work?

java
test-engineering
best-practices
unit-testing

What is the default initialization of an array in Java?

java
default-values
array-initialization
jvm-behavior

How to create a generic array in Java?

java
type-safety
generics
reflection

How to convert Set<String> to String[]?

java
java-8
stream-api
best-practices

Read input stream twice

java
input-streams
io-utilities
stream-management

How to view the list of compile errors in IntelliJ?

java
intellij-settings
error-tracking
compiler-settings

Running code in main thread from another thread

java
threading
concurrency
android

Eclipse - "Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required"

java
java-8
jvm
eclipse

How to check if current thread is not main thread

java
thread-management
android-development
best-practices

Is it possible to assign numeric value to an enum in Java?

java
enum-best-practices
encapsulation
state-machine

Java.lang.outofmemoryerror: Java heap space in Maven

java
memory-management
maven-configuration
performance-optimization

How to import a jar in Eclipse?

java
build-path
eclipse-configuration
jar-management

"content is not allowed in prolog" when parsing perfectly valid XML on GAE

java
xml-parsing
gae
encoding