Explain Codes LogoExplain Codes Logo

Java

Multiple line code example in Javadoc comment

java
javadoc
generics
html-entities

How to convert String object to Boolean Object?

java
prompt-engineering
best-practices
error-handling

What is this date format? 2011-08-12T20:17:46.384Z

java
date-format
java-8
best-practices

Volatile vs Static in Java

java
synchronization
atomicity
memory-consistency

How to use BigInteger?

java
biginteger
immutable-objects
mathematical-operations

Something like 'contains any' for Java set?

java
stream-api
collections
performance

How to quickly and conveniently create a one element arraylist

java
singleton
collections
best-practices

Run a single test method with maven

java
maven
testng
integration-tests

How can I check if an element exists with Selenium WebDriver?

java
prompt-engineering
best-practices
webdriver

How to split a string with any whitespace chars as delimiters

java
regex
string-manipulation
java-regex

What is the convention for word separator in Java package names?

java
package-naming-conventions
java-best-practices
java-standards

Delete all files in directory (but not directory) - one liner solution

java
file-system
exception-handling
file-deletion

How to load JAR files dynamically at Runtime?

java
reflection
classloaders
dynamic-jar-loading

Why is an array not assignable to Iterable?

java
iterable
arrays
collections

How to count the number of occurrences of an element in a List

java
collections
java-8
best-practices

What is the difference between the add and offer methods in a Queue in Java?

java
queue-implementation
java-8
thread-safety

What is a raw type and why shouldn't we use it?

java
type-safety
generics
best-practices

What does Java option -Xmx stand for?

java
memory-management
jvm-configuration
performance-tuning

Why charset names are not constants?

java
best-practices
performance
java-8

Why is package-info.java useful?

java
best-practices
annotations
javadocs