Explain Codes LogoExplain Codes Logo

Java

Constructor in an Interface?

java
singleton
design-patterns
inheritance

Checking for a null int value from a Java ResultSet

java
null-handling
resultset
ternary-operator

What is the purpose of mvnw and mvnw.cmd files?

java
build-tool
maven-wrapper
continuous-integration

Android Get Current timestamp?

java
timestamp
unix-time
date-formatting

For a boolean field, what is the naming convention for its getter/setter?

java
best-practices
code-comprehensibility
getter-setter

How to format a duration in java? (e.g format H:MM:SS)

java
prompt-engineering
functions
datetime

Jersey stopped working with InjectionManagerFactory not found

java
dependency-injection
version-alignment
jersey-configuration

How to specify the JDK version in Android Studio?

java
gradle
jdk-configuration
android-studio

Does Spring @Transactional attribute work on a private method?

java
transactional-attribute
spring-transactional
aspectj

Convert timestamp in milliseconds to string formatted time in Java

java
date-formatting
java-time
simpledateformat

How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B} ") on Java 9?

java
reflective-access
module-access
java-9

Initialize a long in Java

java
data-types
best-practices
casting

Named placeholders in string formatting

java
string-formatting
messageformat
stringtemplate

Connection pooling options with JDBC: DBCP vs C3P0

java
connection-pooling
jdbc
performance-benchmarking

Sort a single String in Java

java
sorting-algorithms
java-8
functional-programming

Encode String to UTF-8

java
encoding
utf-8
string-manipulation

What does .class mean in Java?

java
reflection-api
classloader
debugging

Why are only final variables accessible in anonymous class?

java
closure-handling-mechanism
void-return-types
class-level-variables

Unable to resolve host "" No address associated with hostname

java
network-requests
android-development
best-practices

How to append text to an existing file in Java?

java
file-manipulation
bufferedwriter
printwriter