Explain Codes LogoExplain Codes Logo

Java

Get a list of all threads currently running in Java

java
threads
performance
monitoring

Java - get the current class name?

java
class-names
reflection
best-practices

Multiple queries executed in java in a single statement

java
jdbc
resultset
transactions

Splitting string with pipe character ("|")

java
string-splitting
regex
input-validation

Spring Boot and multiple external configuration files

java
spring-boot
property-management
configuration

Coding Conventions - Naming Enums

java
naming-conventions
enums
best-practices

Jackson with JSON: Unrecognized field, not marked as ignorable

java
json-deserialization
objectmapper
jsonignoreproperties

Convert String to Uri

java
uri
android
error-handling

Why are static variables considered evil?

java
static-variables
design-patterns
object-oriented

How can I increment a date by one day in Java?

java
date-increment
calendar
localdate

What causes error "No enclosing instance of type Foo is accessible" and how do I fix it?

java
inner-classes
static-nested-class
refactoring

Junit 5: How to assert an exception is thrown?

java
exception-handling
junit
lambda

Java current machine name and logged in user?

java
system-properties
exception-handling
cross-platform

Getting a File's MD5 Checksum in Java

java
md5
streams
exceptions

How to print color in console using System.out.println?

java
ansi-codes
console-colors
jcolor

How to POST form data with Spring RestTemplate?

java
resttemplate
http-method
file-upload

View's getWidth() and getHeight() returns 0

java
view-dimensions
custom-views
animations

Initialization of an ArrayList in one line

java
arraylist
stream-api
collections

What Java ORM do you prefer, and why?

java
orm
hibernate
jdbc

Warning: The method assertEquals from the type Assert is deprecated

java
assertions
testing
null-safety