Skip to main content

Uncategorized

final vs finally vs finalize in Java: Differences with Examples

final vs finally vs finalize in Java: a comparison table, final variables, methods and classes, the finally edge cases (return in finally, System.exit), and what finalize() does on JDK 25 and what to use instead. Verified with real output.

Keycloak with Spring Boot 4.1: Roles, Resource Server and Admin API

Keycloak 26.8 with Spring Boot 4.1 and Spring Security 7.1, tested against a real Keycloak: why roles are silently ignored, how a missing audience or a different host turns a valid token into a 401, method security, and managing users with the Keycloak admin client.