Explain Codes LogoExplain Codes Logo

Java

Speed up Spring Boot startup time

java
spring-boot
performance-optimization
class-loading

Sorting a list with stream.sorted() in Java

java
stream-api
sorting-algorithms
java-8

Sockets: Discover port availability using Java

java
port-availability
server-socket
udp-port-checking

Simple way to encode a string according to a password?

java
encryption
security
key-storage

Similarity String Comparison in Java

java
string-comparison
similarity-measures
algorithm-selection

Should try...catch go inside or outside a loop?

java
exception-handling
performance-optimization
code-readability

Should private helper methods be static if they can be static

java
best-practices
performance
code-organization

Should I use Java date and time classes or go with a 3rd party library like Joda Time?

java
date-time-api
joda-time
java-8

Should I use @EJB or @Inject

java
dependency-injection
cdi
ejb

Should I instantiate instance variables on declaration or in the constructor?

java
initialization
dependency-injection
best-practices

Setting default values for columns in JPA

java
data-integrity
business-logic
default-values

Setmaxresults for Spring-Data-JPA annotation?

java
pagination
spring-data-jpa
query-annotation

Set ImageView width and height programmatically?

java
imageview
layoutparams
responsive-design

Servlet for serving static content

java
caching
servlet
static-content

Scheduleatfixedrate vs scheduleWithFixedDelay

java
scheduling
thread-pool
executor-service

Running JAR file on Windows

java
java-runtime-environment
jar-file-associations
batch-file-execution

Running code after Spring Boot starts

java
spring-boot-startup
application-ready-event
lifecycle-management

Run class in Jar file

java
classpath
manifest
verbose-class

Run a JAR file from the command line and specify classpath

java
classpath-management
manifest-file
java-execution

Round up to 2 decimal places in Java?

java
rounding
bigdecimal
precision