T
TCS Interview — Java (Java Developer)
January 11, 2026
- Company
- TCS
- Role
- Java Developer
- Experience
- 4-6 years
- Round
- Other
Questions Asked
10 questions- 1.Explain the difference between HashMap and ConcurrentHashMap. When would you use each?
- 2.How do you handle transactions in Spring Boot? Explain the @Transactional annotation.
- 3.Design a REST API for an e-commerce cart system. Include endpoints and explain authentication.
- 4.What is the difference between fail-fast and fail-safe iterators in Java Collections?
- 5.Write a SQL query to find the second highest salary from an Employee table.
- 6.Explain microservices architecture and how you would handle inter-service communication.
- 7.How do you implement exception handling in Spring Boot? Give examples of custom exceptions.
- 8.Describe a situation where you optimized database queries. What approach did you take?
- 9.What are the SOLID principles? Explain with real-world examples.
- 10.