Explain Codes LogoExplain Codes Logo

Java

No @XmlRootElement generated by JAXB

java
jAXB
marshaling
xml-serialization

How to delete a folder with files using Java

java
file-handling
directory-deletion
apache-commons-io

How to run a JAR file

java
manifest
classpath
java-8

How to create correct JSONArray in Java using JSONObject

java
json-objects
json-array
java-7

How to convert nanoseconds to seconds using the TimeUnit enum?

java
performance
best-practices
concurrency

Re-run Spring Boot Configuration Annotation Processor to update generated metadata

java
annotation-processors
spring-boot
metadata

When exactly is it leak safe to use (anonymous) inner classes?

java
memory-leaks
best-practices
android-development

How to clone ArrayList and also clone its contents?

java
clone
deep-copy
object-cloning

Reading a plain text file in Java

java
file-handling
buffered-reader
try-with-resources

How can I convert my Java program to an .exe file?

java
executable-jar
java-to-exe
packaging

Alarm Manager Example

java
alarm-management
android-development
broadcast-receiver

How do I format a long integer as a string without separator in Java?

java
string-formatting
java-8
best-practices

Access restriction on class due to restriction on required library rt.jar?

java
access-restrictions
eclipse-settings
java-compiler

How to mock void methods with Mockito

java
mockito
testing
unit-testing

Should I use string.isEmpty() or "".equals(string)?

java
best-practices
performance
null-pointer-exception

How to convert a char to a String?

java
best-practices
performance
functions

Find Oracle JDBC driver in Maven repository

java
maven
jdbc
oracle

How do I break out of nested loops in Java?

java
best-practices
functions
promises

How do you kill a Thread in Java?

java
interrupts
thread-management
best-practices

How to set JAVA_HOME in Linux for all users

java
java-home
linux
environment-variables