Home/Companies/Accenture
ACC

Accenture Interview Questions

Global consulting and IT services giant with offices in all major Indian cities. Interviews test Java, Spring Boot REST APIs, microservices architecture, and cloud (Azure/GCP). System design and agile practices are assessed for senior roles.

262questions
54 Easy208 Medium

#1What is the difference between == and .equals() in Java?

Easy
Core JavaJava

#2What is the difference between abstract class and interface?

Easy
OOPJava

#3Explain the SOLID principles.

Medium
OOPJava

#4How does HashMap work internally?

Medium
CollectionsJava

#5What is the difference between HashMap and ConcurrentHashMap?

Medium
CollectionsJava

#6Explain Java Memory Model: Heap, Stack, and Metaspace.

Medium
JVMJava

#7What is the volatile keyword in Java?

Medium
ConcurrencyJava

#8What are functional interfaces and lambda expressions in Java 8?

Easy
Java 8+Java

#9What is Optional and when should you use it?

Easy
Java 8+Java

#10Explain the Stream API and intermediate vs terminal operations.

Medium
Java 8+Java

#11What is the difference between checked and unchecked exceptions?

Easy
Core JavaJava

#12What is the difference between String, StringBuilder, and StringBuffer?

Easy
Core JavaJava

#13What is method overloading vs method overriding?

Easy
OOPJava

#14What is the difference between final, finally, and finalize?

Easy
Core JavaJava

#15What are Java records (Java 16+)?

Medium
Java 8+Java

#16What is the Executor framework and when would you use it over raw Threads?

Medium
ConcurrencyJava

#17What is encapsulation and how is it achieved in Java?

Easy
OOPJava

#18What is polymorphism? Explain runtime vs compile-time polymorphism.

Easy
OOPJava

#19What is the difference between composition and inheritance?

Medium
OOPJava

#20What is a marker interface? Give examples.

Medium
OOPJava

#21What are the design patterns most commonly asked in Java interviews?

Medium
OOPJava

#22What is the difference between ArrayList and LinkedList?

Easy
CollectionsJava

#23What is the difference between HashSet, LinkedHashSet, and TreeSet?

Easy
CollectionsJava

#24What is the difference between HashMap and TreeMap?

Easy
CollectionsJava

#25What is the contract between equals() and hashCode()?

Medium
CollectionsJava

#26What is the difference between fail-fast and fail-safe iterators?

Medium
CollectionsJava

#27What is CopyOnWriteArrayList and when should you use it?

Medium
CollectionsJava

#28How does PriorityQueue work and when would you use it?

Medium
CollectionsJava

#29What is the difference between sleep(), wait(), and yield()?

Medium
ConcurrencyJava

#30What are atomic classes (AtomicInteger, AtomicReference)? How do they work?

Medium
ConcurrencyJava

#31What is a CountDownLatch vs CyclicBarrier?

Medium
ConcurrencyJava

#32What is the difference between JDK, JRE, and JVM?

Easy
JVMJava

#33What is the String pool and how does string interning work?

Medium
JVMJava

#34What are sealed classes (Java 17)?

Medium
Java 8+Java

#35What is pattern matching for instanceof (Java 16)?

Medium
Java 8+Java

#36What are text blocks (Java 15)?

Easy
Java 8+Java

#37What is the difference between map() and flatMap() in streams?

Medium
Java 8+Java

#38What are method references in Java 8?

Easy
Java 8+Java

#39What is the difference between Comparable and Comparator?

Medium
CollectionsJava

#40What is Stream.collect() and what are common Collectors?

Medium
Java 8+Java

#41What is try-with-resources and how does it work?

Medium
Exception HandlingJava

#42What is the difference between throw and throws?

Easy
Exception HandlingJava

#43What is exception chaining and why is it important?

Medium
Exception HandlingJava

#44What is the difference between Java IO and NIO?

Medium
Core JavaJava

#45What is reflection in Java and when is it used?

Medium
Core JavaJava

#46What is the difference between deep copy and shallow copy?

Medium
Core JavaJava

#47What is autoboxing and unboxing? What are the performance implications?

Medium
Core JavaJava

#48What are enums in Java and what advanced features do they support?

Medium
Core JavaJava

#49What is the difference between static and instance initializer blocks?

Medium
Core JavaJava

#50What is the difference between String.format() and String.formatted()?

Easy
Core JavaJava

#51What is the var keyword (Java 10) and when should you use it?

Easy
Java 8+Java

#52What is the difference between an inner class, static nested class, and anonymous class?

Medium
OOPJava

#53What are the new switch expressions (Java 14)?

Medium
Java 8+Java

#54What is the difference between Runnable, Callable, and Future?

Medium
ConcurrencyJava

#55What is the difference between String.equals() and String.equalsIgnoreCase()?

Easy
Core JavaJava

#56What is the difference between Iterator and ListIterator?

Easy
CollectionsJava

#57What is the difference between abstract class and concrete class?

Easy
OOPJava

#58How do you handle NullPointerException in Java?

Medium
Exception HandlingJava

#59What is the Collections utility class? What are its most important methods?

Easy
CollectionsJava

#60What is the difference between Deque and Queue?

Medium
CollectionsJava

#61What is the difference between checked and unchecked exceptions — best practices for APIs?

Medium
Exception HandlingJava

#62What is the ternary operator and the null-coalescing equivalent in Java?

Easy
Core JavaJava

#63What is the difference between == null check and Objects.isNull()?

Easy
Core JavaJava

#64What is the difference between interface default methods and abstract class methods?

Medium
OOPJava

#65What is the difference between Iterable and Iterator?

Easy
CollectionsJava

#66What are the best practices for writing clean Java code?

Medium
Core JavaJava

#67What is the difference between a process and a thread in Java?

Easy
ConcurrencyJava

#68What is a race condition and how do you prevent it?

Medium
ConcurrencyJava

#69What is the difference between HashMap.computeIfAbsent() and getOrDefault()?

Medium
CollectionsJava

#70What is the purpose of the transient keyword?

Medium
Core JavaJava

#71What is the difference between i++ and ++i in Java?

Easy
Core JavaJava

#72What are the Java 8 Date/Time APIs and why were they introduced?

Medium
Java 8+Java

#73What is the difference between HashMap.put() and HashMap.putIfAbsent()?

Medium
CollectionsJava

#74What is the difference between String.valueOf() and toString()?

Easy
Core JavaJava

#75What is an immutable class and how do you create one?

Medium
OOPJava

#76What is the covariant return type in Java?

Medium
OOPJava

#77What is the difference between static and instance methods?

Easy
OOPJava

#78What is the difference between Predicate.and(), Predicate.or(), and Predicate.negate()?

Medium
Java 8+Java

#79What is the Observer pattern and how is it implemented in Java?

Medium
OOPJava

#80What is the Strategy pattern in Java?

Medium
OOPJava

#81What are the key differences between Java 8, 11, 17, and 21?

Medium
Java 8+Java

#82What is auto-configuration in Spring Boot?

Medium
Core ConceptsSpring Boot

#83What is @SpringBootApplication and what does it do?

Easy
Core ConceptsSpring Boot

#84What is IoC (Inversion of Control) and Dependency Injection?

Easy
Core ConceptsSpring Boot

#85What is the difference between @Component, @Service, and @Repository?

Easy
Core ConceptsSpring Boot

#86What is the difference between @Controller and @RestController?

Easy
REST APISpring Boot

#87How does Spring Boot handle exceptions globally?

Medium
REST APISpring Boot

#88What is Spring Boot Actuator?

Easy
ProductionSpring Boot

#89What is the difference between @Bean and @Component?

Medium
Core ConceptsSpring Boot

#90Explain Spring Bean scopes.

Medium
Core ConceptsSpring Boot

#91How do you configure Spring profiles?

Easy
ConfigurationSpring Boot

#92What is @Async in Spring Boot and how does it work?

Medium
AdvancedSpring Boot

#93What is Spring Data JPA and how does it simplify data access?

Medium
Data AccessSpring Boot

#94How does Spring Boot externalized configuration work?

Medium
ConfigurationSpring Boot

#95What is Spring Cache Abstraction and how do you use it?

Medium
AdvancedSpring Boot

#96What are Spring Boot starters and why are they useful?

Easy
Core ConceptsSpring Boot

#97How do you write integration tests in Spring Boot?

Medium
TestingSpring Boot

#98What is the Spring ApplicationContext and how does it differ from BeanFactory?

Medium
Core ConceptsSpring Boot

#99What is the @PostConstruct and @PreDestroy lifecycle?

Medium
Core ConceptsSpring Boot

#100What is @Qualifier and when do you need it?

Medium
Core ConceptsSpring Boot

#101What is @ConfigurationProperties and how does it differ from @Value?

Medium
ConfigurationSpring Boot

#102What is Spring Boot's embedded server and how do you switch from Tomcat to Undertow?

Medium
Core ConceptsSpring Boot

#103What is Spring's @EventListener and ApplicationEvent?

Medium
AdvancedSpring Boot

#104What is Spring Boot DevTools?

Easy
Core ConceptsSpring Boot

#105What is the difference between @RequestParam, @PathVariable, and @RequestBody?

Easy
REST APISpring Boot

#106How do you implement request validation in Spring Boot?

Medium
REST APISpring Boot

#107What is ResponseEntity and when should you use it?

Medium
REST APISpring Boot

#108What is content negotiation in Spring MVC?

Medium
REST APISpring Boot

#109How do you implement pagination and sorting in Spring Boot?

Medium
REST APISpring Boot

#110How do you version a REST API in Spring Boot?

Medium
REST APISpring Boot

#111What is the difference between findById() and getById() in Spring Data JPA?

Medium
Data AccessSpring Boot

#112What is the difference between @OneToMany with fetch LAZY vs EAGER?

Medium
Data AccessSpring Boot

#113What is CSRF and how does Spring Security handle it?

Medium
SecuritySpring Boot

#114What is the difference between @Secured, @PreAuthorize, and @RolesAllowed?

Medium
SecuritySpring Boot

#115What is CORS and how do you configure it in Spring Boot?

Medium
SecuritySpring Boot

#116What is MockMvc and how do you use it?

Medium
TestingSpring Boot

#117What is @MockBean vs @Mock in Spring Boot tests?

Medium
TestingSpring Boot

#118What is @DataJpaTest and how does it differ from @SpringBootTest?

Medium
TestingSpring Boot

#119What is Testcontainers and how does it improve Spring Boot tests?

Medium
TestingSpring Boot

#120What is Micrometer and how does it integrate with Spring Boot Actuator?

Medium
ProductionSpring Boot

#121How do you implement custom health indicators in Spring Boot?

Medium
ProductionSpring Boot

#122What is graceful shutdown in Spring Boot and how do you configure it?

Medium
ProductionSpring Boot

#123What is @ControllerAdvice and how does it work?

Medium
REST APISpring Boot

#124What is Spring's @Scheduled and how do you configure it?

Medium
AdvancedSpring Boot

#125What is CommandLineRunner and ApplicationRunner?

Easy
Core ConceptsSpring Boot

#126What is Spring Boot's banner and how can you customize it?

Easy
Core ConceptsSpring Boot

#127What is Spring Retry and how do you use it?

Medium
AdvancedSpring Boot

#128What is @Transactional readOnly = true and what does it optimize?

Medium
Data AccessSpring Boot

#129How do you handle file uploads in Spring Boot?

Medium
REST APISpring Boot

#130What is the difference between @RequestMapping and specific mapping annotations?

Easy
REST APISpring Boot

#131What is the difference between @Transactional on a class vs a method?

Medium
Data AccessSpring Boot

#132What is Spring Boot's connection pool? How do you tune HikariCP?

Medium
Data AccessSpring Boot

#133What is Spring Boot's auto-configuration for messaging (RabbitMQ / Kafka)?

Medium
AdvancedSpring Boot

#134How does Spring Boot handle environment-specific properties?

Medium
ConfigurationSpring Boot

#135What is the purpose of @EnableJpaAuditing?

Medium
Data AccessSpring Boot

#136What is the difference between eager and lazy initialization in Spring Boot?

Medium
Core ConceptsSpring Boot

#137What is Spring Boot's support for caching with Redis?

Medium
AdvancedSpring Boot

#138What is Spring Boot's support for MongoDB?

Medium
Data AccessSpring Boot

#139What is the difference between @Valid and @Validated in Spring?

Medium
REST APISpring Boot

#140What is Spring Data REST and how does it differ from Spring MVC?

Medium
Data AccessSpring Boot

#141What is the difference between @Inject and @Autowired?

Easy
Core ConceptsSpring Boot

#142What is Flyway and how does it integrate with Spring Boot?

Medium
Data AccessSpring Boot

#143What are Spring Boot's management endpoints and how do you secure them?

Medium
ProductionSpring Boot

#144What is Spring Boot's Docker image building support?

Medium
ProductionSpring Boot

#145What is the difference between @SpringBootTest(webEnvironment) options?

Medium
TestingSpring Boot

#146What is Spring Boot's support for SSE (Server-Sent Events)?

Medium
AdvancedSpring Boot

#147What are microservices and what problems do they solve?

Easy
ArchitectureMicroservices

#148What is an API Gateway and what does it do?

Medium
ArchitectureMicroservices

#149How do microservices communicate?

Medium
CommunicationMicroservices

#150What is service discovery in microservices?

Medium
InfrastructureMicroservices

#151What is the Circuit Breaker pattern and how does it prevent cascading failures?

Medium
ResilienceMicroservices

#152What is distributed tracing and why is it important?

Medium
ObservabilityMicroservices

#153What is the Strangler Fig pattern for microservices migration?

Medium
ArchitectureMicroservices

#154How do you manage configuration in microservices?

Medium
InfrastructureMicroservices

#155What are the 12-Factor App principles?

Medium
ArchitectureMicroservices

#156What is event-driven architecture and when should you use it?

Medium
ArchitectureMicroservices

#157How do you test microservices effectively?

Medium
TestingMicroservices

#158What is the circuit breaker pattern?

Medium
ResilienceMicroservices

#159What is service discovery and how does it work?

Medium
InfrastructureMicroservices

#160What is the Bulkhead pattern?

Medium
ResilienceMicroservices

#161What is the Retry pattern and how do you implement it safely?

Medium
ResilienceMicroservices

#162What is the Backend for Frontend (BFF) pattern?

Medium
ArchitectureMicroservices

#163How do you implement distributed tracing?

Medium
ObservabilityMicroservices

#164What is the Strangler Fig pattern for migrating a monolith?

Medium
ArchitectureMicroservices

#165How do you version microservice APIs?

Medium
API DesignMicroservices

#166What is the Sidecar pattern?

Medium
InfrastructureMicroservices

#167What is a dead letter queue and why is it important?

Medium
MessagingMicroservices

#168How do you implement health checks in microservices?

Medium
InfrastructureMicroservices

#169What are the 12-Factor App principles?

Medium
ArchitectureMicroservices

#170What is the Ambassador pattern in microservices?

Medium
InfrastructureMicroservices

#171What is the Throttling pattern and how does it differ from rate limiting?

Medium
ResilienceMicroservices

#172How do you test microservices?

Medium
TestingMicroservices

#173What is service isolation and why is it important?

Medium
ArchitectureMicroservices

#174What is an Event-Driven Architecture?

Medium
ArchitectureMicroservices

#175What is the Role of API composition in microservices?

Medium
ArchitectureMicroservices

#176What is graceful degradation in microservices?

Medium
ResilienceMicroservices

#177How do you implement logging in a microservices environment?

Medium
ObservabilityMicroservices

#178How do you handle timeouts in microservices?

Medium
ResilienceMicroservices

#179What is the Scatter-Gather pattern?

Medium
ArchitectureMicroservices

#180What is the difference between a microservice and a nanoservice?

Medium
ArchitectureMicroservices

#181How do you implement canary deployments in microservices?

Medium
InfrastructureMicroservices

#182What is a Service Registry?

Medium
InfrastructureMicroservices

#183What is blue-green deployment and how does it work?

Medium
InfrastructureMicroservices

#184What is the Aggregator pattern?

Medium
ArchitectureMicroservices

#185How do microservices handle configuration management?

Medium
InfrastructureMicroservices

#186What is the Proxy pattern in microservices?

Medium
InfrastructureMicroservices

#187What is Kafka and why is it popular in microservices?

Medium
MessagingMicroservices

#188What is the difference between a monolith, microservices, and modular monolith?

Medium
ArchitectureMicroservices

#189What is a composite microservice?

Medium
ArchitectureMicroservices

#190How do you deal with "chatty" microservices?

Medium
ArchitectureMicroservices

#191What is the Anti-Corruption Layer pattern?

Medium
ArchitectureMicroservices

#192What are the common pitfalls of microservices adoption?

Medium
ArchitectureMicroservices

#193What is the difference between orchestration and choreography?

Medium
Distributed TransactionsMicroservices

#194What is load shedding?

Medium
ResilienceMicroservices

#195What is the difference between gRPC and REST for inter-service communication?

Medium
API DesignMicroservices

#196What is the Gateway Aggregation pattern vs Gateway Routing?

Medium
ArchitectureMicroservices

#197What is the Open Host Service pattern?

Medium
ArchitectureMicroservices

#198How do you implement service-level SLOs in microservices?

Medium
ObservabilityMicroservices

#199What is the Claim Check pattern?

Medium
MessagingMicroservices

#200What is the difference between horizontal and vertical scaling for microservices?

Medium
InfrastructureMicroservices

#201What is the role of a message schema registry?

Medium
MessagingMicroservices

#202How do you handle service discovery with Kubernetes?

Medium
InfrastructureMicroservices

#203What is the Publisher-Subscriber (Pub-Sub) pattern?

Easy
MessagingMicroservices

#204How do you use feature toggles in microservices?

Medium
ArchitectureMicroservices

#205What is polyglot persistence in microservices?

Medium
Data ManagementMicroservices

#206What is the Retry pattern and when should you NOT retry?

Medium
ResilienceMicroservices

#207When should you NOT use microservices?

Medium
ArchitectureMicroservices

#208What is the difference between horizontal and vertical scaling?

Easy
FundamentalsSystem Design

#209Explain the CAP theorem.

Medium
FundamentalsSystem Design

#210Explain cache invalidation strategies.

Medium
CachingSystem Design

#211How would you design a URL shortener (like bit.ly)?

Medium
System Design ProblemsSystem Design

#212What is the Circuit Breaker pattern?

Medium
Microservices PatternsSystem Design

#213What is eventual consistency?

Medium
Distributed SystemsSystem Design

#214What is a message queue and when should you use one?

Medium
FundamentalsSystem Design

#215What is the difference between SQL and NoSQL databases?

Medium
Database DesignSystem Design

#216What is a CDN and how does it improve performance?

Easy
PerformanceSystem Design

#217How would you design a notification system (push, email, SMS)?

Medium
System Design ProblemsSystem Design

#218What is the difference between REST and gRPC?

Medium
FundamentalsSystem Design

#219What is the difference between synchronous and asynchronous communication in microservices?

Medium
Microservices PatternsSystem Design

#220What are the different types of database indexes and when do you use each?

Medium
Database DesignSystem Design

#221What is the difference between optimistic and pessimistic locking?

Medium
Database DesignSystem Design

#222How would you design a real-time leaderboard?

Medium
Real-World DesignSystem Design

#223What is the difference between a load balancer and an API gateway?

Medium
InfrastructureSystem Design

#224What is the difference between a message queue and a message broker?

Medium
Distributed SystemsSystem Design

#225What is the difference between replication and partitioning in databases?

Medium
Database DesignSystem Design

#226What is observability and what are its three pillars?

Medium
ObservabilitySystem Design

#227What is the difference between SQL and NoSQL databases?

Easy
Database DesignSystem Design

#228How do you implement idempotency in APIs?

Medium
API DesignSystem Design

#229What are the trade-offs of microservices vs monolithic architecture?

Medium
FundamentalsSystem Design

#230How does DNS work and how is it used in load balancing?

Medium
InfrastructureSystem Design

#231What is the strangler fig pattern?

Medium
FundamentalsSystem Design

#232What is the difference between push and pull architectures for data?

Medium
Distributed SystemsSystem Design

#233What is a CDN and how does it work?

Easy
InfrastructureSystem Design

#234What is API versioning and what are the different strategies?

Medium
API DesignSystem Design

#235How do you implement zero-downtime deployments?

Medium
InfrastructureSystem Design

#236What are the key principles of the SOLID design principles?

Easy
FundamentalsSystem Design

#237What is backpressure and how do you handle it?

Medium
Distributed SystemsSystem Design

#238What is a time-series database and when should you use one?

Medium
Database DesignSystem Design

#239What is a circuit breaker and how do you implement it?

Medium
ReliabilitySystem Design

#240How do you handle database migrations safely in production?

Medium
Database DesignSystem Design

#241How do you secure an API at the architecture level?

Medium
SecuritySystem Design

#242What is the difference between synchronous replication and asynchronous replication?

Medium
Database DesignSystem Design

#243What is chaos engineering and how do you implement it?

Medium
ReliabilitySystem Design

#244What is the database connection pool and how do you tune it?

Medium
Database DesignSystem Design

#245How do you design an access control system?

Medium
SecuritySystem Design

#246What are SLOs, SLIs, and SLAs?

Easy
ObservabilitySystem Design

#247How does the request flow work in a typical microservices architecture?

Medium
Microservices PatternsSystem Design

#248What is the difference between availability and reliability?

Easy
ReliabilitySystem Design

#249What is the N+1 query problem and how do you fix it?

Medium
Database DesignSystem Design

#250What is the difference between a forward proxy and a reverse proxy?

Easy
InfrastructureSystem Design

#251What is the difference between stateful and stateless services?

Easy
FundamentalsSystem Design

#252What is the read-your-own-writes consistency guarantee?

Medium
Distributed SystemsSystem Design

#253How do you design a search-as-you-type / typeahead feature?

Medium
Real-World DesignSystem Design

#254What is the difference between gRPC unary, server streaming, client streaming, and bidirectional streaming?

Medium
API DesignSystem Design

#255How do you handle large file uploads efficiently?

Medium
API DesignSystem Design

#256What is the difference between monolithic and microservices deployment strategies?

Medium
InfrastructureSystem Design

#257What is the thundering herd problem?

Medium
ReliabilitySystem Design

#258What is the difference between a monorepo and polyrepo?

Medium
FundamentalsSystem Design

#259What is the difference between a batch job and a stream processing job?

Medium
Distributed SystemsSystem Design

#260How do you design an API for mobile clients vs web clients?

Medium
API DesignSystem Design

#261What is the role of a message broker in event-driven architecture?

Medium
Distributed SystemsSystem Design

#262How do you approach capacity planning for a new system?

Medium
FundamentalsSystem Design