Explain Codes LogoExplain Codes Logo

Java

Including jars in classpath on commandline (javac or apt)

java
classpath
javac
command-line

Including all the jars in a directory within the Java classpath

java
classpath
wildcards
java-8

Immutable array in Java

java
immutable-arrays
java-9
data-integrity

Illegalargumentexception or NullPointerException for a null parameter?

java
exception-handling
best-practices
api-design

Ignoring new fields on JSON objects using Jackson

java
json-serialization
jackson-annotations
deserialization

Ignore fields from Java object dynamically while sending as JSON from Spring MVC

java
json-engineering
spring-mvc
best-practices

Httpurlconnection timeout settings

java
httpurlconnection
timeout-settings
network-conditions

Httpservletrequest to complete URL

java
string-assembly
url-construction
performance-optimization

Httpservletrequest - How to obtain the referring URL?

java
http-headers
referer-url
web-development

Httpservletrequest get JSON POST data

java
json-deserialization
exception-handling
content-type-check

How to verify multiple method calls with different params

java
argument-capturing
mockito
unit-testing

How to verify a method of a non-mock object is called?

java
mockito
testing
dependency-injection

How to use WeakReference in Java and Android development?

java
weak-references
memory-management
garbage-collection

How to use `string.startsWith()` method ignoring the case?

java
prompt-engineering
functions
best-practices

How to use MDC with thread pools?

java
thread-pool
mdc
logging

How to use classes from .jar files?

java
classpath
java-8
best-practices

How to use ArgumentCaptor for stubbing?

java
mockito
testing
best-practices

How to use an existing database with an Android application

java
database-integration
sqlite
room

How to tell if JRE or JDK is installed

java
environment-variables
java-installation
jdk-vs-jre

How to supply value to an annotation from a Constant java

java
immutable-constants
annotation-processing
compile-time-constants