As reported: BlackRock Associate Java backend rounds (Mumbai). Interview 1 (Mar 2026), after two coding questions: HashMap internals;
hashCode()and what happens when you override it; multithreading —synchronizedblocks,ExecutorService; the circuit breaker in microservices;@Componentvs@Configuration; the Spring bean lifecycle; how Kafka works. Associate, 3 years of experience (Jul 2025): round 2 on core Java, garbage collection and multithreading (with cross-questioning on the HLD/LLD of the candidate's projects); the hiring-manager round on core Java, garbage collection, multithreading and design patterns.
Answer each briefly, with a line of code where it helps.
Core Java
- How does
HashMapwork internally? - What is
hashCode()used for, and what happens when you override it (with or withoutequals)? - How does garbage collection work in the JVM, and which collectors do you know?
Concurrency
synchronizedmethods vssynchronizedblocks: what is locked, and when to use which?ExecutorService: how do you create, use and shut one down?
Spring and microservices
@Componentvs@Configuration(and@Bean).- The Spring bean lifecycle.
- What is a circuit breaker, and how does it work in microservices?
Design and messaging
- Design patterns you have used, and where.
- How does Kafka work?