Selected Java Interview Questions
Author

Selected Java Interview Questions

A professional Java tech channel sharing common knowledge to help developers fill gaps. Follow us!

1.5k
Articles
0
Likes
3.5k
Views
0
Comments
Recent Articles

Latest from Selected Java Interview Questions

100 recent articles max
Selected Java Interview Questions
Selected Java Interview Questions
Mar 10, 2026 · Backend Development

Why Over‑Encapsulation Breaks Your Code and How to Fix It

The article explains how excessive, fake, or chaotic encapsulation creates hidden risks, reduces maintainability, and hampers extensibility, then provides concrete refactoring examples and practical principles to achieve clean, purposeful encapsulation in backend code.

best practicescode maintainabilityencapsulation
0 likes · 11 min read
Why Over‑Encapsulation Breaks Your Code and How to Fix It
Selected Java Interview Questions
Selected Java Interview Questions
Mar 9, 2026 · Databases

How to Paginate Efficiently Across Sharded Databases Without OOM

This article explains why pagination only becomes complex when querying across sharded databases, compares three common solutions—including global search, sequential ID‑based paging, and the discouraged secondary query method—provides practical SQL examples, outlines pros and cons, and offers a STAR‑style interview answer.

PaginationSQLsharding
0 likes · 6 min read
How to Paginate Efficiently Across Sharded Databases Without OOM
Selected Java Interview Questions
Selected Java Interview Questions
Mar 6, 2026 · Backend Development

Master Maven: From Plugin Setup to Full Web Project Build

This guide walks through Maven’s core workflow for Java backend development, covering plugin configuration, automatic project setup in IntelliJ IDEA, detailed pom.xml settings—including properties, dependencies, plugins—and code examples for Servlets and JSPs, plus dependency scope handling to avoid runtime conflicts.

Dependency ScopeIntelliJ IDEAbackend development
0 likes · 11 min read
Master Maven: From Plugin Setup to Full Web Project Build
Selected Java Interview Questions
Selected Java Interview Questions
Mar 3, 2026 · Backend Development

Automate Sensitive Data Encryption in MyBatis with Annotations and Interceptors

This article explains how to replace manual encryption code with a lightweight, annotation‑driven solution that uses a custom MyBatis interceptor to automatically encrypt and decrypt sensitive fields such as phone numbers, emails, and ID cards, improving code readability, maintainability, and security compliance.

AnnotationInterceptorJava
0 likes · 20 min read
Automate Sensitive Data Encryption in MyBatis with Annotations and Interceptors
Selected Java Interview Questions
Selected Java Interview Questions
Mar 2, 2026 · Backend Development

Why Trailing Slashes Change Nginx Proxy Behavior and How to Deploy WASM

This article explores common pitfalls and nuanced behaviors in Nginx configuration, illustrating how trailing slashes affect proxy_pass routing, detailing location matching priorities, comparing reload commands, guiding offline installation across architectures, and providing comprehensive settings for deploying Unity WebGL WASM applications with proper MIME types and security headers.

Nginxdeploymentlocation
0 likes · 20 min read
Why Trailing Slashes Change Nginx Proxy Behavior and How to Deploy WASM
Selected Java Interview Questions
Selected Java Interview Questions
Feb 26, 2026 · Backend Development

Why Your Snowflake‑Like ID Generator May Duplicate IDs Under High Concurrency

The article analyzes a custom TraceIdGenerator that uses a simple AtomicInteger counter and IP‑based prefix, identifying how its reset logic and CAS competition can cause duplicate IDs in high‑concurrency scenarios, and proposes timestamp checks, larger ranges, retry mechanisms, and true Snowflake implementation as solutions.

AtomicIntegerHigh ConcurrencyID generation
0 likes · 11 min read
Why Your Snowflake‑Like ID Generator May Duplicate IDs Under High Concurrency