Explain Codes LogoExplain Codes Logo

Java

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

Ant path style patterns

java
file-system
pattern-matching
wildcards

Converting between java.time.LocalDateTime and java.util.Date

java
time-zone-handling
date-time-api
java-8

How do I find where JDK is installed on my windows machine?

java
java-home
jdk-installation
windows

Switch case statement error: case expressions must be constant expression

java
best-practices
performance
if-else

How can I parse/format dates with LocalDateTime? (Java 8)

java
date-formatting
localdatetime
datetimeformatter

How to show method parameters hint in Intellij IDEA?

java
intellij-ide
code-completion
parameter-hints

How to add one day to a date?

java
date-manipulation
java-8-api
time-zones

How to use Mockito with JUnit 5?

java
mockito
junit-5
test-injection