Zafrul
TechStack
Home
Blog
Interview Q&A
Projects
AI Assistant
Resume Analyzer
Job Match
Contact
Java
General
Interview questions on General.
All Levels
Beginner
Intermediate
Advanced
Search
Showing
10
of
78
questions
1. In production, your app frequently exhausts DB connections. How would you tune HikariCP for 100 active connections?
+
2. In a loan approval workflow, if one step fails, you need to rollback gracefully and log details. How would you structure your custom exceptions?
+
3. What is the difference between Set and WeakSet in ES6?
+
4. Your Java service updates a DB and also publishes to Kafka. If DB commit succeeds but Kafka fails, how would you handle exactly-once consistency?
+
5. You see GC pauses in a low-latency trading system. How would you tune the Garbage Collector (G1/ZGC) for minimum stop-the-world pauses?
+
6. What are the possible GC types in the latest Java version (Java 21 or Java 25)?
+
7. Do you participate in code reviews? If yes, what are the best practices for code review? How can you ensure your code is secure? How to avoid code smells?
+
8. How do you handle API security in your application? How to do it in Spring Boot 6.x+?
+
9. What are Virtual Threads and how do they improve concurrency compared to Platform Threads?
+
10. What are String Templates? How can multiline Strings help you simplify your code?
+
Previous
Page 4 of 8
Next