Java
When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?
java
dependency-injection
security-context
spring-security
When to use Spring Integration vs. Camel?
java
integration-patterns
spring-ecosystem
framework-comparison
When to use @QueryParam vs @PathParam
java
api-design
rest-api
path-params
When to use generic methods and when to use wild-card?
java
type-parameters
wildcards
generics
When should we use Observer and Observable?
java
event-driven-architecture
thread-safety
memory-leaks
When should we use intern method of String on String literals
java
string-interning
performance-optimization
memory-management
When should we call System.exit in Java
java
shutdown-hooks
system-exit
thread-management
When should one use final for method parameters and local variables?
java
immutability
best-practices
thread-safety
When should I use File.separator and when File.pathSeparator?
java
file-separator
file-path-separator
cross-system-compatibility
What to return if a Spring MVC controller method doesn't return value?
java
response-entity
void-method
http-status-code
What's the simplest way to print a Java array?
java
array-printing
debugging
java-8
What's the nearest substitute for a function pointer in Java?
java
functional-programming
lambdas
functional-interfaces
What's the difference between Thread start() and Runnable run()
java
concurrency
thread-pool
callable
What's the difference between JPA and Spring Data JPA?
java
repository-pattern
jpa-configuration
spring-data-jpa
What's the best way to check if a String represents an integer in Java?
java
exception-handling
performance-optimization
string-validation
What's the best way to build a string of delimited items in Java?
java
string-join
string-builder
performance-optimization
What's the actual use of 'fail' in JUnit test case?
java
test-engineering
assertions
exception-handling
What's causing my java.net.SocketException: Connection reset?
java
network-packets
http-client-logging
tls-compatibility
What is the use of join() in threading?
java
threading
concurrency
deadlocks
What is the use of a private static variable in Java?
java
singleton
constants
immutability
Prev
1
2
3
...
102
Next
explain.codes
/
Java