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
Dec 10, 2025 · Backend Development

Mastering Generic Tree Construction in Java: A Robust TreeBuilder Utility

This article presents a comprehensive Java TreeBuilder utility that uses generics to construct hierarchical data structures, featuring automatic root detection, cyclic dependency detection, customizable sorting, and search‑tree generation, while providing detailed implementation insights and practical usage examples.

BackendDevelopmentCyclicDependencyGenericUtility
0 likes · 10 min read
Mastering Generic Tree Construction in Java: A Robust TreeBuilder Utility
Selected Java Interview Questions
Selected Java Interview Questions
Dec 5, 2025 · Databases

Unlock MySQL 8.0’s Hidden Optimization Tricks to Supercharge Your Queries

Discover eight powerful, lesser‑known MySQL 8.0 features—including window functions, descending indexes, generated columns, invisible indexes, hints, resource groups, LATERAL JOIN, and multi‑valued JSON indexes—that can dramatically improve query performance, simplify code, and give you an edge in interviews and production environments.

Generated ColumnsIndexesJSON
0 likes · 12 min read
Unlock MySQL 8.0’s Hidden Optimization Tricks to Supercharge Your Queries
Selected Java Interview Questions
Selected Java Interview Questions
Dec 4, 2025 · Backend Development

Detect and Resolve Maven Dependency Conflicts in Java Projects

This guide explains how to view the Maven dependency tree using IntelliJ IDEA, the command line, or the Maven Helper plugin, identify conflicting JARs, and resolve them with exclusion rules or dependencyManagement, providing clear examples and step‑by‑step commands for Java backend developers.

Backend DevelopmentIDEAJava
0 likes · 6 min read
Detect and Resolve Maven Dependency Conflicts in Java Projects
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2025 · Backend Development

Coexisting Multiple DataSources in Spring Boot: No Switching Needed

This guide explains how to configure Spring Boot applications to use multiple coexisting DataSource beans—such as MySQL and TDengine—without runtime switching, covering bean definitions, MyBatis mapper scanning, transaction manager setup, custom @Transactional annotations, and common pitfalls, enabling clean separation of business, log, and time‑series data.

Backend DevelopmentMyBatisSpring Boot
0 likes · 12 min read
Coexisting Multiple DataSources in Spring Boot: No Switching Needed
Selected Java Interview Questions
Selected Java Interview Questions
Dec 2, 2025 · Backend Development

How to Build a Scalable WebSocket Service with Netty, Spring Boot, and Vue2

This guide walks through creating a full‑stack WebSocket solution using Netty for the server, Spring Boot for lifecycle management, Redis for token validation, and Vue2 on the client, covering configuration, token handling, heartbeat detection, channel management, and message broadcasting with complete code examples.

NettySpring BootVue2
0 likes · 37 min read
How to Build a Scalable WebSocket Service with Netty, Spring Boot, and Vue2
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2025 · Backend Development

Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection

This article explains why the @Autowired field injection in Spring is often discouraged, compares it with @Resource and constructor injection, shows practical code examples and error scenarios, and provides guidance on choosing the most appropriate dependency‑injection method for robust backend development.

AutowiredBackend DevelopmentConstructor Injection
0 likes · 9 min read
Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection
Selected Java Interview Questions
Selected Java Interview Questions
Nov 23, 2025 · Backend Development

Mastering Order Workflow with Spring Statemachine: A Step‑by‑Step Guide

This tutorial shows how to replace bulky if‑else or switch logic with Spring Statemachine in a Spring Boot application, covering dependency setup, state and event enums, machine configuration, persistence, service implementation, controller endpoints, and advanced conditional transitions for loan processing.

Conditional TransitionJavaOrder Workflow
0 likes · 10 min read
Mastering Order Workflow with Spring Statemachine: A Step‑by‑Step Guide