🏢 Cyient – Java Backend Developer Interview Questions
📅 Interview Date: 01 October 2025
🎯 Experience Level: 5–8 Years
💻 Mode: Virtual – Technical Round
👤 Role: Senior Java Backend Developer – Spring Boot & Microservices
🟦 Java
1. What are the benefits of sealed classes and interfaces in Java 17?
2. How do virtual threads in Java 21 help with high-concurrency applications?
3. Explain the difference between HashMap and ConcurrentHashMap.
4. What are switch expressions, and how do they differ from switch statements?
5. How does garbage collection differ between G1, ZGC, and Shenandoah collectors?
6. Explain the role of CompletableFuture in asynchronous programming.
7. What is the difference between [Link]() and [Link]()?
8. What are text blocks, and how do they improve code readability?
9. How does pattern matching for instanceof reduce boilerplate code?
10. What is the difference between strong, weak, soft, and phantom references in
Java?
🟦 Spring + Spring Boot
11. How does Spring Boot auto-configuration work internally?
12. What is the difference between @Component, @Service, and @Repository?
13. How do you configure exception handling using @ControllerAdvice?
14. How do you secure REST APIs with OAuth2 and Spring Security?
15. What is the difference between [Link] and [Link]?
16. How do Spring Profiles help in multi-environment configuration?
17. How do you implement caching in Spring Boot applications?
18. What is the purpose of Actuator endpoints in Spring Boot?
19. How do you configure asynchronous tasks in Spring Boot?
20. How does Spring Boot integrate with cloud-based services like AWS RDS or S3?
🟦 Microservices
21. What is the role of service discovery in microservices?
22. How do you implement circuit breakers in microservices?
23. What is the Saga pattern, and when would you use it?
24. How do you manage inter-service communication securely in microservices?
🟦 Coding Questions
25. Write a program to merge two sorted arrays without using extra space.
26. Implement a function to detect cycles in a directed graph.
27. Write a program to find the first non-repeating character in a string.
🟨 Others
28. What is the difference between Kafka consumer groups and partitions?
29. How do you configure persistent volumes in Kubernetes?
30. Write a SQL query to fetch the nth highest salary from an employee table.
31. How do you implement idempotent RESTful APIs?
32. What’s the difference between Docker containers and VMs?
33. How do you configure centralized logging in Kubernetes clusters?
34. Explain blue-green vs canary deployments.
35. How does Kafka ensure exactly-once delivery semantics?