Explain Codes LogoExplain Codes Logo

Java

In Java, how do I call a base class's method from the overriding method in a derived class?

java
inheritance
superclass
method-overriding

Is there a javadoc tag for documenting generic type parameters?

java
generics
documentation
best-practices

Storing UUID as base64 String

java
base64-encoding
uuid
java-8

Comparing two java.util.Dates to see if they are in the same day

java
date-comparison
time-zones
java-8

I want to get Year, Month, Day, etc from Java Date to compare with Gregorian Calendar date in Java. Is this possible?

java
date-comparison
java-time-api
best-practices

Spring @Transactional - isolation, propagation

java
transactional-annotation
database-isolation
transaction-propagation

Is it better practice to use String.format over string Concatenation in Java?

java
string-format
string-concatenation
performance

How to get the path of src/test/resources directory in JUnit?

java
classloader
resource-management
maven

Why is a static method considered a method?

java
static-methods
oop-mindset
best-practices

How to get the path of a running JAR file?

java
java-8
reflection
security

Java 8 Lambda function that throws exception?

java
lambda
try-catch
functional-interfaces

Picking a random element from a set

java
random-access
data-structure
collections

Java Constructor Inheritance

java
constructor-inheritance
design-patterns
best-practices

Mac OS X and multiple Java versions

java
homebrew
java-versions
sdkman

How do synchronized static methods work in Java and can I use it for loading Hibernate entities?

java
synchronized-methods
hibernate-entities
thread-safety

Remove HTML tags from a String

java
html-parsing
jsoup
html-sanitization

How to test if one java class extends another at runtime?

java
reflection
subclass-checking
inheritance-testing

Implements Closeable or implements AutoCloseable

java
resource-management
best-practices
java-7

@uniqueconstraint annotation in Java

java
unique-constraint
annotation
jpa

Dealing with "Xerces hell" in Java/Maven?

java
maven
dependency-management
pom