Java Interview Crash Guide
Author

Java Interview Crash Guide

Dedicated to sharing Java interview Q&A; follow and reply "java" to receive a free premium Java interview guide.

379
Articles
0
Likes
92
Views
0
Comments
Recent Articles

Latest from Java Interview Crash Guide

100 recent articles max
Java Interview Crash Guide
Java Interview Crash Guide
Jul 25, 2023 · Databases

Why MySQL Indexes Fail and How to Make Them Work

This article explains common MySQL index‑inefficiency scenarios—including left‑most prefix violations, range queries, functions, LIKE patterns, OR/IN misuse, and ORDER BY—provides concrete SQL examples, visual illustrations of B+‑tree indexing, and practical tips such as index jump scans, ICP, and query rewriting to ensure optimal index usage.

MySQLOptimizationSQL
0 likes · 20 min read
Why MySQL Indexes Fail and How to Make Them Work
Java Interview Crash Guide
Java Interview Crash Guide
Jun 27, 2023 · Backend Development

How to Ensure Transaction Consistency in Multithreaded Spring Applications

This article explains how to execute two dependent tasks in parallel using CompletableFuture, why @Async and @Transactional are insufficient for multithreaded transaction consistency, and provides a programmatic solution that copies Spring transaction resources between threads to guarantee atomic commit or rollback across asynchronous operations.

CompletableFuturemultithreadingprogrammatic transaction
0 likes · 19 min read
How to Ensure Transaction Consistency in Multithreaded Spring Applications
Java Interview Crash Guide
Java Interview Crash Guide
Jun 15, 2023 · Backend Development

Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State

This guide explains the fundamentals of state machines, introduces the four core concepts, shows how to model order transitions with diagrams, and provides a complete Spring Statemachine implementation—including database schema, enums, configuration, persistence, controller, service, listeners, testing, and advanced error‑handling techniques—so developers can create reliable, persisted workflows in Java.

Finite State MachinePersistencespring statemachine
0 likes · 30 min read
Mastering Spring Statemachine: Build Robust Order Workflows with Persistent State
Java Interview Crash Guide
Java Interview Crash Guide
Jun 9, 2023 · Backend Development

Bean Searcher vs MyBatis Plus: Which Dynamic Query Tool Wins?

Bean Searcher and MyBatis Plus both enable dynamic queries in Java, but they differ in ORM dependence, query syntax, operator flexibility, logical grouping, multi‑table support, and ideal use cases, with Bean Searcher offering dynamic operators and one‑line controller code while MyBatis Plus excels in transactional operations.

Bean SearcherDynamic QueryJava ORM
0 likes · 19 min read
Bean Searcher vs MyBatis Plus: Which Dynamic Query Tool Wins?
Java Interview Crash Guide
Java Interview Crash Guide
May 25, 2023 · Backend Development

Top 16 Spring Boot Best Practices to Supercharge Your Backend

This article presents sixteen practical Spring Boot best‑practice recommendations—including custom BOM management, auto‑configuration, project initialization, code organization, dependency injection, concurrency handling, externalized configuration, logging, testing, and more—to help developers build robust, maintainable microservices efficiently.

JavaSpring Bootbackend development
0 likes · 13 min read
Top 16 Spring Boot Best Practices to Supercharge Your Backend
Java Interview Crash Guide
Java Interview Crash Guide
May 24, 2023 · Backend Development

Why Lombok’s Getter/Setter Breaks MyBatis and EasyExcel: Hidden Pitfalls Explained

This article explores how Lombok’s auto‑generated getter/setter methods can conflict with MyBatis property naming conventions and cause null values, examines the underlying reflection logic in MyBatis, and also reveals why the @Accessor(chain=true) annotation disrupts EasyExcel’s CGLIB‑based mapping, offering practical solutions.

EasyExcelGetterSetterJava
0 likes · 7 min read
Why Lombok’s Getter/Setter Breaks MyBatis and EasyExcel: Hidden Pitfalls Explained
Java Interview Crash Guide
Java Interview Crash Guide
Apr 21, 2023 · Databases

Mastering Redis: Core Uses, Data Types, Persistence, and Performance Tricks

This article explains Redis’s primary roles as a high‑speed cache, in‑memory database, and analytics engine, compares it with relational databases, details its data structures, single‑threaded performance, persistence options, expiration and eviction policies, distributed lock implementation, and strategies for cache penetration, breakdown, and avalanche.

Distributed LockIn-Memory DatabaseRedis
0 likes · 21 min read
Mastering Redis: Core Uses, Data Types, Persistence, and Performance Tricks