Explain Codes LogoExplain Codes Logo

Java

Convert Long into Integer

java
null-handling
overflow-handling
conversion-strategies

Converting an int to a binary string representation in Java?

java
binary-conversion
integer-to-binary
java-8

Use Mockito to mock some methods but not others

java
mockito
unit-testing
test-coverage

Examples of GoF Design Patterns in Java's core libraries

java
design-patterns
java-8
object-handling

Getresourceasstream returns null

java
class-loading
resource-management
best-practices

What is a JavaBean exactly?

java
encapsulation
serialization
object-oriented-programming

Cast Object to Generic Type for returning

java
type-erasure
array-casting
exception-handling

How to add an image to a JPanel?

java
image-handling
performance
exception-handling

What is a safe way to create a Temp file in Java?

java
temp-files
nio2
file-attributes

Converting String array to java.util.List

java
arrays
collections
java-8

Should a "static final Logger" be declared in UPPER-CASE?

java
naming-convention
best-practices
logging

What's the difference between @Component, @Repository & @Service annotations in Spring?

java
annotations
spring
aop

What is the difference between List and ArrayList?

java
polymorphism
arraylist
best-practices

Multi-project test dependencies with gradle

java
gradle
multi-project
dependencies

Mockito: how to verify method was called on an object created within a method?

java
mocking
test-driven-development
dependency-injection

Intellij IDEA generating serialVersionUID

java
serialversionuid
troubleshooting
plugins

Standard concise way to copy a file in Java?

java
file-copying
filechannel
error-handling

C# Java HashMap equivalent

java
hashmap
exception-handling
custom-dictionary

What are enums and why are they useful?

java
enums
object-oriented
design-patterns

Java 8 Streams: Multiple Filters vs. Complex Condition

java
streams
performance
filters