Explain Codes LogoExplain Codes Logo

Java

Int division: Why is the result of 1/3 == 0?

java
integer-division
casting
binary-numeric-promotion

What is the equivalent to a JavaScript setInterval/setTimeout in Android/Java?

java
timers
scheduling
android-development

Spring Boot - Cannot determine embedded database driver class for database type NONE

java
datasource-properties
auto-configuration
spring-boot

Http Basic Authentication in Java using HttpClient

java
http-client
http-requests
basic-authentication

How to convert enum value to int?

java
enum-int-conversion
java-best-practices
enum-usage

What goes into the "Controller" in "MVC"?

java
mvc-pattern
input-validation
error-handling

How to append a newline to StringBuilder

java
prompt-engineering
best-practices
performance

How to generate serial version UID in Intellij

java
serialization
intellij
best-practices

How do I convert from int to Long in Java?

java
autoboxing
null-handling
type-casting

Can't compile project when I'm using Lombok under IntelliJ IDEA

java
lombok
intellij-idea
annotation-processing

Jax-rs — How to return JSON and HTTP status code together?

java
response-builder
http-status-codes
exception-handling

Converting ISO 8601-compliant String to java.util.Date

java
date-time-api
java-8
best-practices

How to define custom exception class in Java, the easiest way?

java
exception-handling
best-practices
custom-exceptions

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