Explain Codes LogoExplain Codes Logo

Java

"instantiating" a List in Java?

java
interface-vs-class
list-implementation
polymorphism

What is the meaning of double tilde (~~) in Java?

java
bitwise-operations
gwt
javascript-interop

Java: using switch statement with enum under subclass

java
switch-expressions
enum-visibility
best-practices

How to convert a Binary String to a base 10 integer in Java

java
binary-conversion
base-10-integer
two-complement-notation

Spring MVC - How to return simple String as JSON in Rest Controller

java
best-practices
json-handling
rest-controllers

Eclipse: Set maximum line length for auto formatting?

java
editor-preferences
auto-formatting
custom-formatter-profile

How to iterate through SparseArray?

java
sparse-array
android-development
performance-optimization

Quickest way to convert XML to JSON in Java

java
xml-to-json
jackson-library
org-json-library

Java Interfaces/Implementation naming convention

java
best-practices
design-patterns
naming-conventions

How to get current moment in ISO 8601 format with date, hour, and minute?

java
prompt-engineering
java-8
datetime

Joining paths in Java

java
path-management
java-8
file-handling

Surefire is not picking up Junit 5 tests

java
interview-preparation
best-practices
maven

Format an Integer using Java String Format

java
formatting
string-format
java-string-format

How to implement a Map with multiple keys?

java
map-implementation
data-structures
concurrency

Why use @PostConstruct?

java
bean-lifecycle
spring-framework
java-ee

Get list of JSON objects with Spring RestTemplate

java
rest-template
json-parsing
spring-framework

How to convert milliseconds to "hh:mm:ss" format?

java
time-unit
date-formatting
java-8

How to catch an Exception from a thread

java
exception-handling
threading
concurrency

Android buildscript repositories: jcenter vs mavencentral

java
gradle
maven-central
repository-management

What to use instead of Class.newInstance()?

java
reflection
object-creation
best-practices