Explain Codes LogoExplain Codes Logo

Java

How to fetch FetchType.LAZY associations with JPA and Hibernate in a Spring Controller

java
lazy-loading
jpa
hibernate

Hiding certain methods from other packages

java
access-control
encapsulation
best-practices

How to change a field name in JSON using Jackson

java
json-engineering
objectmapper
field-renaming

Scanner is skipping nextLine() after using next() or nextFoo()?

java
scanner
input-buffer
error-handling

Gson ignoring map entries with value=null

java
json-serialization
gson
custom-serialization

How to split a String by space

java
regex
string-splitting
performance

How to get an enum value from a string value in Java

java
enum-engineering
best-practices
performance

Read Resource Text File to String in Java

java
file-io
java-nio
exception-handling

How to convert a String into an ArrayList?

java
list-operations
string-manipulation
performance-optimization

Difference between java.lang.RuntimeException and java.lang.Exception

java
exception-handling
best-practices
java-exception

How do I copy an object in Java?

java
clone
reflection
best-practices

Converting array to list in Java

java
array-conversion
stream-api
java-8

How do I parse command line arguments in Java?

java
command-line-arguments
parser-engineering
best-practices

How to loop through a HashMap in JSP?

java
prompt-engineering
best-practices
model-citizens-of-mvc

How is CountDownLatch used in Java Multithreading?

java
multithreading
synchronization
executor-service

Short form for Java if statement

java
best-practices
ternary-operator
null-checks

How do I change the IntelliJ IDEA default JDK?

java
intellij-idea
jdk
java-compiler

Test if an element is present using Selenium WebDriver

java
selenium
webdriver
javascript

Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project

java
build-tools
gradle
maven

How do you specify the Java compiler version in a pom.xml file?

java
maven
compiler-plugin
java-compiler