Java: Garbage Collection Basics
Why can two services with similar heap size perform very differently?
Because one service may allocate many more temporary objects per request. Steady-state heap size does not tell you…
View Card →Quick study sessions to strengthen memory and retain key concepts.
Why can two services with similar heap size perform very differently?
Because one service may allocate many more temporary objects per request. Steady-state heap size does not tell you…
View Card →What is allocation churn?
A high rate of short-lived object creation that increases GC and CPU work. A service can have stable…
View Card →What are the trade-offs of using a high BCrypt work factor?
Higher work factors increase security but slow down hashing. BCrypt's work factor determines the computational cost of hashing…
View Card →Why is HTML encoding crucial in preventing stored XSS?
HTML encoding prevents execution of malicious scripts by treating them as text. Stored Cross-Site Scripting (XSS) occurs when…
View Card →What role do CSRF tokens play in web security?
CSRF tokens prevent unauthorized actions on behalf of users. Cross-Site Request Forgery (CSRF) tokens are unique tokens included…
View Card →How do PreparedStatements protect against SQL Injection?
They safely handle user inputs, treating them as literal values. PreparedStatements prevent SQL Injection by separating SQL logic…
View Card →Why is it important to prevent SQL Injection?
SQL Injection can allow attackers to execute arbitrary database commands. SQL Injection occurs when an attacker manipulates a…
View Card →Understanding SQL injection risks with string concatenation?
String concatenation can lead to SQL Injection vulnerabilities. When SQL queries are built using string concatenation, user input…
View Card →The role of CSRF tokens in web security?
CSRF tokens validate the legitimacy of requests. CSRF tokens are unique values sent with user requests to verify…
View Card →Role of Spring Security Filter Chain in application security?
The Filter Chain processes security filters for each request. In Spring Security, the filter chain applies a series…
View Card →