Equal Experts Interview Questions
Boutique tech consultancy with flat structure and senior-heavy teams across Pune and Bangalore. Interviews test hands-on Java and Spring Boot skills, microservices architecture, cloud deployment, and XP practices. High bar for pragmatic, well-tested engineering.
#1Explain the SOLID principles.
#2How does HashMap work internally?
#3What is the difference between HashMap and ConcurrentHashMap?
#4Explain Java Memory Model: Heap, Stack, and Metaspace.
#5What is the volatile keyword in Java?
#6What is the difference between synchronized and ReentrantLock?
#7What is a deadlock and how do you prevent it?
#8Explain the Stream API and intermediate vs terminal operations.
#9What is garbage collection? How does G1 differ from ZGC?
#10What is the Java ClassLoader hierarchy?
#11What are Java records (Java 16+)?
#12What is the Executor framework and when would you use it over raw Threads?
#13What is the difference between composition and inheritance?
#14What is a marker interface? Give examples.
#15What are the design patterns most commonly asked in Java interviews?
#16How do you implement a Singleton in Java correctly?
#17What is the contract between equals() and hashCode()?
#18What is the difference between fail-fast and fail-safe iterators?
#19What is CopyOnWriteArrayList and when should you use it?
#20How does PriorityQueue work and when would you use it?
#21What is the happens-before relationship in Java Memory Model?
#22What is the difference between sleep(), wait(), and yield()?
#23What are atomic classes (AtomicInteger, AtomicReference)? How do they work?
#24What is a CountDownLatch vs CyclicBarrier?
#25What is a ThreadLocal and what are its dangers?
#26What is a CompletableFuture and how does it improve async programming?
#27What are virtual threads (Project Loom, Java 21)?
#28How does the JIT (Just-In-Time) compiler work?
#29What is the difference between minor GC, major GC, and full GC?
#30What tools do you use to diagnose JVM memory issues?
#31What is the String pool and how does string interning work?
#32What is type erasure in Java generics?
#33What is the difference between <? extends T> and <? super T>?
#34What are sealed classes (Java 17)?
#35What is pattern matching for instanceof (Java 16)?
#36What is the difference between map() and flatMap() in streams?
#37What is the difference between Comparable and Comparator?
#38What is Stream.collect() and what are common Collectors?
#39What is try-with-resources and how does it work?
#40What is exception chaining and why is it important?
#41What is the difference between Java IO and NIO?
#42What is Java Serialization and what are its pitfalls?
#43What is reflection in Java and when is it used?
#44What is the difference between deep copy and shallow copy?
#45What is autoboxing and unboxing? What are the performance implications?
#46What are enums in Java and what advanced features do they support?
#47What is the difference between static and instance initializer blocks?
#48What are Java modules (Java 9 — JPMS)?
#49What is the difference between an inner class, static nested class, and anonymous class?
#50What are the new switch expressions (Java 14)?
#51What is the difference between Runnable, Callable, and Future?
#52How do you handle NullPointerException in Java?
#53What is the difference between Deque and Queue?
#54What is a WeakHashMap and when would you use it?
#55What is the difference between checked and unchecked exceptions — best practices for APIs?
#56What is the difference between interface default methods and abstract class methods?
#57What are the best practices for writing clean Java code?
#58What is a race condition and how do you prevent it?
#59What is the difference between HashMap.computeIfAbsent() and getOrDefault()?
#60What is the purpose of the transient keyword?
#61What is method hiding in Java?
#62What are the Java 8 Date/Time APIs and why were they introduced?
#63What is the difference between HashMap.put() and HashMap.putIfAbsent()?
#64What is an immutable class and how do you create one?
#65What is the covariant return type in Java?
#66What is the difference between Predicate.and(), Predicate.or(), and Predicate.negate()?
#67What is the Observer pattern and how is it implemented in Java?
#68What is the Strategy pattern in Java?
#69What is String.intern() and when should you use it?
#70What are the key differences between Java 8, 11, 17, and 21?
#71What is auto-configuration in Spring Boot?
#72Explain @Transactional and its propagation levels.
#73How does Spring Boot handle exceptions globally?
#74What is the difference between @Bean and @Component?
#75Explain Spring Bean scopes.
#76What is Spring AOP and where is it used?
#77What is circular dependency and how do you fix it?
#78How does Spring Security authentication work?
#79What is @Async in Spring Boot and how does it work?
#80What is Spring Data JPA and how does it simplify data access?
#81How does Spring Boot externalized configuration work?
#82What is Spring Cache Abstraction and how do you use it?
#83How do you write integration tests in Spring Boot?
#84What is the Spring ApplicationContext and how does it differ from BeanFactory?
#85What is a BeanPostProcessor and when would you use it?
#86What is the @PostConstruct and @PreDestroy lifecycle?
#87What is @Qualifier and when do you need it?
#88How does Spring Boot auto-configuration work under the hood?
#89What is @ConfigurationProperties and how does it differ from @Value?
#90What is Spring Boot's embedded server and how do you switch from Tomcat to Undertow?
#91What is Spring's @EventListener and ApplicationEvent?
#92What is @Conditional and how do you create custom conditions?
#93How do you implement request validation in Spring Boot?
#94What is ResponseEntity and when should you use it?
#95What is content negotiation in Spring MVC?
#96How do you implement pagination and sorting in Spring Boot?
#97What is HATEOAS and does Spring Boot support it?
#98How do you version a REST API in Spring Boot?
#99What is the difference between findById() and getById() in Spring Data JPA?
#100What are JPA entity states (Transient, Managed, Detached, Removed)?
#101What is the difference between @OneToMany with fetch LAZY vs EAGER?
#102What is Hibernate first-level cache and second-level cache?
#103What is the Open Session in View (OSIV) pattern and why is it controversial?
#104What is a Spring Data JPA Specification and when would you use it?
#105What is CSRF and how does Spring Security handle it?
#106How do you implement JWT authentication in Spring Boot?
#107What is the difference between @Secured, @PreAuthorize, and @RolesAllowed?
#108What is CORS and how do you configure it in Spring Boot?
#109What is OAuth2 and how does Spring Security support it?
#110What is MockMvc and how do you use it?
#111What is @MockBean vs @Mock in Spring Boot tests?
#112What is @DataJpaTest and how does it differ from @SpringBootTest?
#113What is Testcontainers and how does it improve Spring Boot tests?
#114What is Micrometer and how does it integrate with Spring Boot Actuator?
#115How do you implement custom health indicators in Spring Boot?
#116How do you implement distributed tracing in Spring Boot?
#117What is graceful shutdown in Spring Boot and how do you configure it?
#118What is a Filter vs HandlerInterceptor in Spring Boot?
#119What is @ControllerAdvice and how does it work?
#120What is Spring WebFlux and how does it differ from Spring MVC?
#121What is Spring's @Scheduled and how do you configure it?
#122What happens during Spring Boot startup?
#123What is Spring Boot's fat JAR and how is it structured?
#124What is Spring Retry and how do you use it?
#125What is Spring Integration vs Spring Batch?
#126What is @Transactional readOnly = true and what does it optimize?
#127What is the difference between Spring @Repository exception translation and JDBC exceptions?
#128How do you handle file uploads in Spring Boot?
#129What is Spring Cloud and its key components?
#130What is the difference between @Transactional on a class vs a method?
#131What is Spring Boot's connection pool? How do you tune HikariCP?
#132What is Spring Boot's auto-configuration for messaging (RabbitMQ / Kafka)?
#133What is Spring's @Lookup annotation?
#134What is Spring Security's method security and how is it different from URL security?
#135How does Spring Boot handle environment-specific properties?
#136What is the purpose of @EnableJpaAuditing?
#137How do you implement rate limiting in Spring Boot?
#138What is the difference between eager and lazy initialization in Spring Boot?
#139What is Spring Boot's support for caching with Redis?
#140What is Spring Boot's support for MongoDB?
#141What is @Transactional self-invocation problem and how do you fix it?
#142What is the difference between @Valid and @Validated in Spring?
#143What is Spring Boot's support for scheduled tasks with Quartz?
#144What is Spring Data REST and how does it differ from Spring MVC?
#145What is Flyway and how does it integrate with Spring Boot?
#146What is Spring Boot's support for WebSockets?
#147How do you implement a multi-tenant application in Spring Boot?
#148What are Spring Boot's management endpoints and how do you secure them?
#149What is Spring Boot's support for R2DBC (reactive database access)?
#150How do you implement idempotency in Spring Boot APIs?
#151What is Spring Boot's support for virtual threads (Java 21)?
#152What is Spring Boot's Docker image building support?
#153What is GraalVM native image and Spring Boot AOT support?
#154What is the difference between @SpringBootTest(webEnvironment) options?
#155What is Spring Boot's support for SSE (Server-Sent Events)?
#156What is Resilience4j and how does it integrate with Spring Boot?
#157What are best practices for Spring Boot application performance tuning?
#158What is an API Gateway and what does it do?
#159How do microservices communicate?
#160What is service discovery in microservices?
#161What is the Circuit Breaker pattern and how does it prevent cascading failures?
#162What is distributed tracing and why is it important?
#163What is the Strangler Fig pattern for microservices migration?
#164What is a sidecar pattern?
#165How do you manage configuration in microservices?
#166What are the 12-Factor App principles?
#167What is event-driven architecture and when should you use it?
#168What is the difference between orchestration and choreography in Saga?
#169How do you test microservices effectively?
#170What is a service mesh and when should you use one?
#171How do you ensure data consistency across microservices?
#172What is the circuit breaker pattern?
#173What is service discovery and how does it work?
#174What is the Bulkhead pattern?
#175What is the Retry pattern and how do you implement it safely?
#176What is the difference between choreography and orchestration in Sagas?
#177What is the Backend for Frontend (BFF) pattern?
#178How do you implement distributed tracing?
#179What is the Strangler Fig pattern for migrating a monolith?
#180What is eventual consistency and how do you design for it?
#181How do you version microservice APIs?
#182What is the Sidecar pattern?
#183What is a dead letter queue and why is it important?
#184How do you implement health checks in microservices?
#185What is the Outbox pattern and how does it guarantee event delivery?
#186What is idempotency and how do you implement it in microservices?
#187What are the 12-Factor App principles?
#188How do you handle secrets management in microservices?
#189What is the Ambassador pattern in microservices?
#190How do you implement inter-service authentication?
#191What is the Throttling pattern and how does it differ from rate limiting?
#192What is CQRS and how does it apply to microservices?
#193How do you test microservices?
#194What is service isolation and why is it important?
#195What is an Event-Driven Architecture?
#196How do you handle database per service in practice?
#197What is the Role of API composition in microservices?
#198What is graceful degradation in microservices?
#199What is the Event Sourcing pattern?
#200How do you implement logging in a microservices environment?
#201What is the two-phase commit vs Saga for distributed transactions?
#202How do you handle timeouts in microservices?
#203What is the Scatter-Gather pattern?
#204What is the difference between a microservice and a nanoservice?
#205How do you implement canary deployments in microservices?
#206What is a Service Registry?
#207What is blue-green deployment and how does it work?
#208What is the Aggregator pattern?
#209How do microservices handle configuration management?
#210What is the Proxy pattern in microservices?
#211How do you implement distributed locking in microservices?
#212What is Kafka and why is it popular in microservices?
#213How do you manage service dependencies in microservices?
#214What is a bounded context?
#215How do you implement a request-reply pattern over async messaging?
#216What is the Token Bucket algorithm and how is it used for rate limiting?
#217How do you handle schema evolution in event-driven systems?
#218What is the difference between a monolith, microservices, and modular monolith?
#219What is the Choreography pattern in detail?
#220What is a composite microservice?
#221How do you deal with "chatty" microservices?
#222What is a process manager / workflow engine in microservices?
#223How do you implement zero-downtime deployments for microservices?
#224What is the Anti-Corruption Layer pattern?
#225What are the common pitfalls of microservices adoption?
#226What is the difference between orchestration and choreography?
#227How do you implement a consistent read across microservices?
#228What is load shedding?
#229What is the difference between gRPC and REST for inter-service communication?
#230What is the Gateway Aggregation pattern vs Gateway Routing?
#231What is the Inbox pattern?
#232How do you handle versioning of events in Kafka?
#233What is the Open Host Service pattern?
#234How do you implement service-level SLOs in microservices?
#235What is the Claim Check pattern?
#236What is service mesh traffic management?
#237What is the difference between horizontal and vertical scaling for microservices?
#238What is the role of a message schema registry?
#239How do you handle service discovery with Kubernetes?
#240How do you implement an API gateway from scratch?
#241What is consumer-driven contract testing (Pact)?
#242How do you use feature toggles in microservices?
#243What is polyglot persistence in microservices?
#244What are distributed caching strategies for microservices?
#245How do you design a CI/CD pipeline for microservices?
#246How do you implement observability with Micrometer, Prometheus, and Grafana?
#247What is the Retry pattern and when should you NOT retry?
#248How do you implement Saga compensation (rollback) in detail?
#249What is multi-tenancy in microservices and how do you implement it?
#250What are the steps to migrate a monolith to microservices using the Strangler Fig pattern?
#251How do you design microservices for failure?
#252What is data mesh and how does it relate to microservices data ownership?
#253What is a sidecar proxy and how does Envoy work?
#254How do you handle inter-service authorization (not just authentication)?
#255When should you NOT use microservices?
#256Explain the CAP theorem.
#257What is consistent hashing and why is it used?
#258What is database sharding and how does it work?
#259Explain cache invalidation strategies.
#260How would you design a URL shortener (like bit.ly)?
#261What is the Saga pattern in microservices?
#262What is CQRS and when should you use it?
#263What are rate limiting algorithms?
#264What is the Circuit Breaker pattern?
#265How do you design for high availability?
#266What is eventual consistency?
#267What is a message queue and when should you use one?
#268What is the difference between SQL and NoSQL databases?
#269How do you handle distributed transactions without 2PC?
#270How would you design a notification system (push, email, SMS)?
#271What is the difference between REST and gRPC?
#272What is the Outbox Pattern?
#273How do you design a distributed cache layer?
#274What is the difference between synchronous and asynchronous communication in microservices?
#275How do you design a notification system that sends 100M notifications per day?
#276What are the different types of database indexes and when do you use each?
#277How would you design a URL shortener like bit.ly?
#278What is eventual consistency and how do you handle it in practice?
#279How do you design a search system at scale?
#280What is the difference between optimistic and pessimistic locking?
#281How would you design a real-time leaderboard?
#282What is a write-ahead log (WAL) and how is it used?
#283How do you handle distributed transactions across microservices?
#284How do you design a chat application like WhatsApp?
#285What is a service mesh and when should you use one?
#286How would you design a video streaming platform like YouTube?
#287What is the difference between a load balancer and an API gateway?
#288How do you prevent and handle cascading failures in distributed systems?
#289What is the difference between a message queue and a message broker?
#290How do you design a rate limiter for an API?
#291What is the difference between replication and partitioning in databases?
#292How would you design Twitter's news feed?
#293What is observability and what are its three pillars?
#294How do you implement idempotency in APIs?
#295How would you design a distributed job scheduler?
#296What is the Saga pattern vs 2PC for distributed transactions?
#297How do you design a file storage system like Dropbox?
#298What are the trade-offs of microservices vs monolithic architecture?
#299How does DNS work and how is it used in load balancing?
#300What is the strangler fig pattern?
#301How do you design an e-commerce inventory system that handles flash sales?
#302What is the difference between push and pull architectures for data?
#303How do you design a fraud detection system?
#304What is event sourcing and how does it differ from CRUD?
#305How would you design a geospatial service like Uber's nearby driver system?
#306What is API versioning and what are the different strategies?
#307What is a Bloom filter and where is it used in system design?
#308How do you implement zero-downtime deployments?
#309What is the two-generals problem and what does it tell us about distributed systems?
#310How do you design a payment processing system?
#311How would you design an autocomplete system?
#312What is backpressure and how do you handle it?
#313What is a time-series database and when should you use one?
#314What is a circuit breaker and how do you implement it?
#315How do you handle database migrations safely in production?
#316What is the CQRS pattern?
#317How do you secure an API at the architecture level?
#318What is the difference between synchronous replication and asynchronous replication?
#319How do you design a system for billions of events per day (analytics pipeline)?
#320What is chaos engineering and how do you implement it?
#321What is the database connection pool and how do you tune it?
#322How do you design an access control system?
#323How would you design an online code execution system like LeetCode?
#324How does the request flow work in a typical microservices architecture?
#325What is a hot partition problem and how do you solve it?
#326How do you design a multi-tenant SaaS architecture?
#327What is tail latency and why does it matter?
#328How do you design a global, low-latency key-value store?
#329What is the N+1 query problem and how do you fix it?
#330How would you design a booking system like Airbnb?
#331How do you design a recommendation system?
#332What is the read-your-own-writes consistency guarantee?
#333How do you design a search-as-you-type / typeahead feature?
#334What is the difference between gRPC unary, server streaming, client streaming, and bidirectional streaming?
#335How do you handle large file uploads efficiently?
#336What are the key considerations when designing for high write throughput?
#337What is the difference between monolithic and microservices deployment strategies?
#338How do you design for disaster recovery?
#339What is the thundering herd problem?
#340What is a vector clock and how does it work?
#341What is the difference between a monorepo and polyrepo?
#342How do you ensure data consistency across microservices?
#343What is the difference between a batch job and a stream processing job?
#344How do you design an API for mobile clients vs web clients?
#345What is the role of a message broker in event-driven architecture?
#346How do you approach capacity planning for a new system?