Explain Codes LogoExplain Codes Logo

Java

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

Implements vs extends: When to use? What's the difference?

java
inheritance
polymorphism
interfaces

Android, getting resource ID from string?

java
android-development
resource-management
performance-optimization

How to implement REST token-based authentication with JAX-RS and Jersey

java
jwt
authentication
authorization

Why is a ConcurrentModificationException thrown and how to debug it

java
concurrent-modification-exception
thread-safety
java-collections

How do I tell Maven to use the latest version of a dependency?

java
maven-plugin
dependency-management
build-stability

When to use static methods

java
singleton
best-practices
performance

Why am I getting Unknown error in line 1 of pom.xml?

java
maven
pom-xml
dependency-management