Accenture Java Interview Questions 2026
Published July 22, 2026 · Updated July 22, 2026
12 real Java interview questions asked at Accenture. Upvoted by engineers who cleared the loop. Covers Technical rounds.
12 questions
205 engineers asked
474 upvotes
Company: Accenture
Technology: Java
All Java Questions Asked at Accenture
Accenture
Medium
Technical round
SeleniumPlaywrightJavaScript
What differences do you see between Selenium and Playwright in automation testing? Cover architecture, browser support, speed, built-in waiting mechanisms, and cross-language support.
↑ 61 upvotes · 22 engineers asked this · Developer
Accenture
Medium
Technical round
SeleniumJava
How can you retrieve all the options available in a dropdown using Selenium? Explain the Select class, how to handle both static and dynamic dropdowns, and edge cases like dropdowns built with div/ul instead of the native select element.
↑ 44 upvotes · 18 engineers asked this · Developer
Accenture
Medium
Technical round
SeleniumJava
What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.
↑ 78 upvotes · 31 engineers asked this · Developer
Accenture
Medium
Technical round
SeleniumJava
How do you handle dynamic elements or changing locators in Selenium automation? Discuss strategies like relative locators, XPath axes, CSS attribute wildcards, and Page Object Model to insulate tests from DOM changes.
↑ 67 upvotes · 26 engineers asked this · Developer
Accenture
Medium
Technical round
Java
What is the purpose of the indexOf() method and how can it be used when removing duplicate characters from a string in Java? Walk through an O(n) solution using a LinkedHashSet or boolean array.
↑ 29 upvotes · 11 engineers asked this · Developer
Accenture
Medium
Technical round
JavaJavaScript
When two developers push changes to the same file in Git simultaneously, how would you resolve the merge conflict?
Walk through: pulling latest, identifying conflict markers (<<<, ===, >>>), choosing which changes to keep, testing after resolution, and committing the merge.
↑ 53 upvotes · 20 engineers asked this · Developer
Accenture
Medium
Technical round
Java
How does adding + "" help convert a char value into a String in Java?
Explain Java's string concatenation rules, why char + "" produces a String while char + char produces an int, and alternative approaches like String.valueOf(char) or Character.toString(char).
↑ 31 upvotes · 11 engineers asked this · Developer
Accenture
Easy
Technical round
1-3 yearsSpring BootJava
What does @SpringBootApplication actually do? Which three annotations does it combine, and what does each one do?
↑ 24 upvotes · 16 engineers asked this · Developer
Accenture
Medium
Technical round
2-4 yearsSpring BootJavaREST
Design a REST controller in Spring Boot for a "create order" endpoint. What annotations and validation would you use to ensure a malformed request returns 400 instead of crashing?
↑ 20 upvotes · 12 engineers asked this · Developer
Accenture
Medium
Technical round
2-5 yearsSpring BootJava
Explain constructor injection vs field injection (@Autowired on a field) in Spring. Why do most teams now prefer constructor injection?
↑ 27 upvotes · 19 engineers asked this · Developer
Accenture
Medium
Technical round
2-4 yearsSpring BootJava
How do you implement centralized exception handling across all controllers in a Spring Boot application, so you don't repeat try/catch in every endpoint?
↑ 18 upvotes · 9 engineers asked this · Developer
Accenture
Hard
Technical round
3-6 yearsSpring BootMicroservicesJava
What does Spring Boot Actuator give you out of the box for a microservice running in production? Name at least 3 endpoints and what each is used for.
↑ 22 upvotes · 10 engineers asked this · Developer
Practice these questions with AI feedback
Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.
Build my study plan →
More Accenture Questions
Java Questions at Other Companies
Browse by company
Frequently asked questions
What differences do you see between Selenium and Playwright in automation testing? Cover architecture, browser support, speed, built-in waiting mechanisms, and cross-language support.
What differences do you see between Selenium and Playwright in automation testing? Cover architecture, browser support, speed, built-in waiting mechanisms, and cross-language support.
How can you retrieve all the options available in a dropdown using Selenium? Explain the Select class, how to handle both static and dynamic dropdowns, and edge cases like dropdowns built with div/ul instead of the native select element.
How can you retrieve all the options available in a dropdown using Selenium? Explain the Select class, how to handle both static and dynamic dropdowns, and edge cases like dropdowns built with div/ul instead of the native select element.
What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.
What are the different wait mechanisms in Selenium (Implicit, Explicit, Fluent Wait), and when should each be used? Explain the downsides of Thread.sleep() and how WebDriverWait improves reliability.
How do you handle dynamic elements or changing locators in Selenium automation? Discuss strategies like relative locators, XPath axes, CSS attribute wildcards, and Page Object Model to insulate tests from DOM changes.
How do you handle dynamic elements or changing locators in Selenium automation? Discuss strategies like relative locators, XPath axes, CSS attribute wildcards, and Page Object Model to insulate tests from DOM changes.
What is the purpose of the indexOf() method and how can it be used when removing duplicate characters from a string in Java? Walk through an O(n) solution using a LinkedHashSet or boolean array.
What is the purpose of the indexOf() method and how can it be used when removing duplicate characters from a string in Java? Walk through an O(n) solution using a LinkedHashSet or boolean array.
When two developers push changes to the same file in Git simultaneously, how would you resolve the merge conflict?
When two developers push changes to the same file in Git simultaneously, how would you resolve the merge conflict?
Walk through: pulling latest, identifying conflict markers (<<<, ===, >>>), choosing which changes to keep, testing after resolution, and committing the merge.
How does adding + "" help convert a char value into a String in Java?
How does adding + "" help convert a char value into a String in Java?
Explain Java's string concatenation rules, why char + "" produces a String while char + char produces an int, and alternative approaches like String.valueOf(char) or Character.toString(char).
What does @SpringBootApplication actually do? Which three annotations does it combine, and what does each one do?
What does @SpringBootApplication actually do? Which three annotations does it combine, and what does each one do?