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
4.1k
Views
0
Comments
Recent Articles

Latest from Selected Java Interview Questions

100 recent articles max
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.

AtomicIntegerID generationJava
0 likes · 11 min read
Why Your Snowflake‑Like ID Generator May Duplicate IDs Under High Concurrency
Selected Java Interview Questions
Selected Java Interview Questions
Feb 14, 2026 · Backend Development

Master Dynamic Table Names in MyBatis‑Plus with a Simple Starter

This article introduces an open‑source MyBatis‑Plus dynamic‑table starter, explains why dynamic table names are needed for large‑scale data, outlines its key features, provides step‑by‑step installation and quick‑start instructions, demonstrates advanced usage, debugging tips, FAQs, and real‑world scenarios.

Dynamic TableJavaMyBatis-Plus
0 likes · 9 min read
Master Dynamic Table Names in MyBatis‑Plus with a Simple Starter
Selected Java Interview Questions
Selected Java Interview Questions
Feb 4, 2026 · Databases

How to Handle Pagination Across Sharded Databases Without Performance Pitfalls

This article explains why pagination only becomes complex when queries span multiple database shards, compares three mainstream solutions—including middleware, open‑source frameworks, and business compromises—highlights the pitfalls of global search for deep pages, and recommends sequential paging based on the previous page’s max ID, with interview‑ready STAR guidance.

InterviewShardingpagination
0 likes · 7 min read
How to Handle Pagination Across Sharded Databases Without Performance Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Jan 30, 2026 · Backend Development

When to Use Git Merge vs Rebase: A Practical Comparison

This article walks through a common development scenario where two feature branches diverge from master, demonstrating how merge and rebase handle integration, conflict resolution, and commit history, and provides guidance on when each strategy is appropriate.

Version Controlconflict resolutiongit
0 likes · 7 min read
When to Use Git Merge vs Rebase: A Practical Comparison
Selected Java Interview Questions
Selected Java Interview Questions
Jan 20, 2026 · Backend Development

How to Diagnose and Fix Maven Dependency Conflicts (NoSuchMethodError & ClassNotFoundException)

This guide explains why Maven dependency conflicts cause errors like NoSuchMethodError and ClassNotFoundException, shows step‑by‑step commands to inspect the dependency tree, and provides three practical ways—exclusions, forced versions, and dependencyManagement—to resolve and prevent such conflicts in Java projects.

BOMClassNotFoundExceptionDependency Conflict
0 likes · 7 min read
How to Diagnose and Fix Maven Dependency Conflicts (NoSuchMethodError & ClassNotFoundException)
Selected Java Interview Questions
Selected Java Interview Questions
Jan 18, 2026 · Backend Development

How to Seamlessly Integrate Arthas into Spring Boot for Real‑Time Monitoring

This guide explains how to embed the Arthas online monitoring tool into a Spring Boot application using the Arthas Spring Boot Starter, configure telnet and HTTP ports, access the console via terminal or web, and extend debugging across multiple services with Arthas Tunnel while addressing security considerations.

ArthasDebuggingJava
0 likes · 12 min read
How to Seamlessly Integrate Arthas into Spring Boot for Real‑Time Monitoring