Explain Codes LogoExplain Codes Logo

Java

Are non-synchronised static methods thread safe if they don't modify static class variables?

java
thread-safety
static-methods
concurrency

Apache Commons equals/hashCode builder

java
equals-hashcode
java-7
best-practices

Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse?

java
intellij-idea
code-completion
auto-import

Any good ORM tools for Android development?

java
orm
android-development
database-management

Android permission doesn't work even if I have declared it

java
runtime-permission
android-permission
permissions-management

Add object to ArrayList at specified index

java
indexoutofbounds
best-practices
collections

Add leading zeroes to a number in Java?

java
format-specifiers
string-format
number-formatting

Add JAR files to a Spark job - spark-submit

java
spark-submit
classpath-management
spark-configurations

Adding IN clause List to a JPA Query

java
jpa
query-optimization
hibernate

A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)

java
datetime
timestamp
preparedstatement

Access "this" from Java anonymous class

java
singleton
best-practices
object-oriented-programming

How to get request URI without context path?

java
servlet
front-controller
urlpathhelper

Avoid synchronized(this) in Java?

java
concurrency-control
synchronization-strategy
lock-contention

What is Persistence Context?

java
entity-manager
persistence-context
entity-lifecycle

Why when a constructor is annotated with @JsonCreator, its arguments must be annotated with @JsonProperty?

java
reflection
deserialization
jackson

Java exception not caught?

java
exception-handling
try-catch-finally
suppressed-exceptions

Read properties file outside JAR file

java
prompt-engineering
best-practices
exception-handling

Delete a line in Eclipse

java
eclipse-shortcuts
keyboard-shortcuts
code-efficiency

Codestyle; put javadoc before or after annotation?

java
javadoc
best-practices
coding-style

Generate Java classes from .XSD files...?

java
xml-binding
xsd-files
java-annotations