Explain Codes LogoExplain Codes Logo

Java

Is main a valid Java identifier?

java
java-8
best-practices
naming-conventions

Gson throwing "Expected BEGIN_OBJECT but was BEGIN_ARRAY"?

java
gson
json-parsing
retrofit

Remote debugging a Java application

java
remote-debugging
jvm-options
debugging-parameters

Difference between UTF-8 and UTF-16?

java
encoding
utf-8
utf-16

Android M Permissions: onRequestPermissionsResult() not being called

java
android-permissions
request-permissions
onrequestpermissionresult

How do I save a String to a text file using Java?

java
file-io
best-practices
resource-management

@aspectj pointcut for all methods of a class with specific annotation

java
aspect-oriented-programming
logging
cross-cutting-concerns

What is the meaning of the CascadeType.ALL for a @ManyToOne JPA association

java
jpa
entity-manager
best-practices

Java ArrayList copy

java
deep-copy
shallow-copy
clone

Convert InputStream to byte array in Java

java
io-utilities
stream-handling
performance-optimization

Most efficient conversion of ResultSet to JSON?

java
performance
optimization
best-practices

How can I download and save a file from the Internet using Java?

java
file-transfer
nio
try-with-resources

How to set delay in Android?

java
prompt-engineering
multithreading
async-patterns

How to remove newlines from beginning and end of a string?

java
string-manipulation
regex
java-11

What is Eclipse's Ctrl+O (Show Outline) shortcut equivalent in IntelliJ IDEA?

java
intellij-idea
shortcuts
navigation

Command line progress bar in Java

java
prompt-engineering
performance
best-practices

How do I efficiently iterate over each entry in a Java Map?

java
iteration-strategies
map-iteration
performance-optimization

How can I initialise a static Map?

java
static-map-initialization
java-collections
best-practices

Logback to log different messages to two files

java
logback
logging
configuration

Removing the first 3 characters from a string

java
string-manipulation
exception-handling
performance-optimization