Explain Codes LogoExplain Codes Logo

Java

Observer is deprecated in Java 9. What should we use instead of it?

java
concurrency-models
thread-safety
event-model

Null check in an enhanced for loop

java
null-checks
best-practices
java-8

Noclassdeffounderror: android.support.v7.internal.view.menu.MenuBuilder

java
android-support-libraries
proguard-rules
androidx-migration

Mvn install or Mvn package

java
maven-commands
build-lifecycle
package-vs-install

Move to next item using Java 8 foreach loop in stream

java
lambdas
streaming
iterators

Most efficient way to cast List<Subclass> to List<Baseclass>

java
collections
type-safety
immutable

Mod in Java produces negative numbers

java
remainder
modulus
java-8

Modifying local variable from inside lambda

java
lambda
best-practices
mutable-state

Mocking member variables of a class using Mockito

java
mockito
dependency-injection
testing

Missing return statement in a non-void method compiles

java
infinite-loops
compiler-behavior
return-statements

Maven does not find JUnit tests to run

java
maven
junit
test-execution

Mapstruct + Lombok together not compiling: unknown property in result type

java
lombok
mapstruct
annotation-processing

Map enum in JPA with fixed values?

java
jpa
enum
attributeconverter

Making a mocked method return an argument that was passed to it

java
mockito
testing
unit-testing

Make Hibernate ignore instance variables that are not mapped

java
hibernate-configuration
persistence-annotations
best-practices

Log4j vs logback

java
logging-configurations
logback-vs-log4j
performance-optimization

Log4j: Log output of a specific class to a specific appender

java
log4j
logging
configuration

List of Java class file format major version numbers?

java
class-file-versions
java-versions
javap-command

Kotlin-android: unresolved reference databinding

java
data-binding
gradle
kotlin-android

Junit confusion: use 'extends TestCase' or '@Test'?

java
test-engineering
best-practices
annotations