Explain Codes LogoExplain Codes Logo

Java

How do I exclude all instances of a transitive dependency when using Gradle?

java
gradle
dependency-management
build-tools

What are Java command line options to set to allow JVM to be remotely debugged?

java
debugging
jvm-options
remote-debugging

Mockito test a void method throws an exception

java
mockito
unit-testing
exception-handling

What is x after "x = x++"?

java
post-increment-operator
java-expressions
programming-puzzles

How can I sort a List alphabetically?

java
advanced-sorting-techniques
custom-sorting
comparators

How do I calculate someone's age in Java?

java
exception-handling
date-time
unit-testing

Spring JPA @Query with LIKE

java
prompt-engineering
best-practices
soft-skills

How to remove unused imports in Intellij IDEA on commit?

java
best-practices
tools
code-management

Get first and last day of month using threeten, LocalDate

java
date-manipulation
temporal-adjusters
localdate

How to clean project cache in IntelliJ IDEA like Eclipse's clean?

java
intellij-idea
cache-management
development-tools

How to run Gradle from the command line on Mac bash

java
gradle
bash
command-line

Eclipse debugger always blocks on ThreadPoolExecutor without any obvious exception, why?

java
debugging
eclipse
threadpoolexecutor

How does an ArrayList's contains() method evaluate objects?

java
equals-method
hashcode-method
collections

Encoding as Base64 in Java

java
base64-encoding
java-8
encoding

Arraylist initialization equivalent to array initialization

java
arraylist
initialization
collections

How to calculate "time ago" in Java?

java
prompt-engineering
best-practices
functions

Simplest way to read JSON from a URL in Java

java
exception-handling
json-parsing
maven-dependency-management

Understanding Spring @Autowired usage

java
spring
autowired
bean-injection

How can I tell jackson to ignore a property for which I don't have control over the source code?

java
serialization
jackson
deserialization

How to create empty folder in java?

java
exception-handling
file-operations
java-api