Barclays interview questions with answers (technology graduates)
Last updated 2026-11-19
Barclays runs large technology teams in India, with offices in Pune and Chennai. Candidates describe interviews that lean on practical engineering: Java and Spring, REST APIs, SQL, version control and delivery practices, plus behavioural questions about teamwork and doing the right thing in a regulated environment.
The thirteen questions below are practice in that style, with worked answers. They are not past questions. For the online test, see Barclays coding round questions.
| Typical roles | Graduate technology analyst, software engineer (Pune, Chennai) |
|---|---|
| Rounds, as commonly reported | Online test, technical interview, managerial or HR round |
| Heavy topics | Java, Spring, REST, SQL, Git, CI/CD, Agile |
| Hiring news | See Hiring status below |
Rounds as commonly reported
Candidates commonly report an online assessment with aptitude and coding, followed by a technical interview and a managerial or HR conversation. Barclays has also used a campus hackathon, Hack-o-Hire, as a route in at selected colleges, as noted in the hiring section below. Rounds vary by role and campus.
The technical interview often starts from your resume. If you list Spring Boot, expect to be asked how a request flows through controllers, services and repositories. If you list a database, expect a query on the spot.
What to prepare
- Core Java, collections, streams, exceptions and concurrency basics. See Java interview questions.
- Spring Boot, REST, SQL and one project explained end to end.
- Git, CI/CD and Agile vocabulary, with a practical example for each.
- Behavioural stories about teamwork, ethics and ownership. See how to crack the HR interview.
Hiring status
There is no Barclays hiring-news page on this site, and this page quotes no hiring numbers, dates or packages because none are sourced here. Check the Barclays careers site at search.jobs.barclays for current roles and eligibility.
Check the Barclays careers site at search.jobs.barclays for current roles and eligibility.
- Barclays ran its Hack-o-Hire campus hackathon online from 26 March to 2 April 2025 for selected engagement campuses (PICT, VIT Pune, Cummins Pune, SPIT, SRM Chennai and SSN); shortlisted students joined the Pune and Chennai offices.
- Barclays's careers site lists open technology roles such as Cloud Data Engineer and Full Stack Engineer in Pune and Chennai. This is rolling hiring with no application window.
Barclays interview questions with answers (technology graduates): questions with worked answers
1 Using Java streams, count employees per department.
easyStream the list and collect with groupingBy on the department, using counting() as the downstream collector. The result is a Map from department to Long. Streams are lazy, so nothing runs until the terminal collect call. Mention that for a very large list you can use parallelStream, but only when the work per element is substantial and the operations are stateless. Barclays technology interviews commonly check that you know modern Java rather than only loops.
javaimport java.util.*; import java.util.stream.*; record Emp(String name, String dept) {} class Demo { static Map<String, Long> countByDept(List<Emp> emps) { return emps.stream().collect(Collectors.groupingBy(Emp::dept, Collectors.counting())); } }2 In Spring, what is dependency injection, and how do @Component and @Bean differ?
mediumDependency injection means a class receives its collaborators from the container instead of constructing them, which makes the class testable with fakes and lets configuration change wiring without code changes. Constructor injection is preferred because the object is complete and its dependencies can be final. @Component marks a class for classpath scanning, so Spring creates it. @Bean is placed on a method inside a @Configuration class and is used when you need to construct an object yourself, for example a third-party class you cannot annotate. The default scope is singleton: one instance per container.
3 What is the difference between PUT, PATCH and POST, and which HTTP status codes should a create endpoint return?
easyPOST creates a resource and is not idempotent. PUT replaces a resource at a known URL and is idempotent. PATCH applies a partial update. A successful create returns 201 Created with a Location header; validation errors return 400, missing authentication 401, lack of permission 403, a missing resource 404 and a conflict such as a duplicate 409. Avoid returning 200 with an error message in the body, since clients and monitoring rely on status codes.
4 Delete duplicate rows from a table, keeping the row with the smallest id for each email.
mediumJoin the table to itself on the duplicated column and delete the row with the larger id. An alternative is to delete where id is not in the set of MIN(id) grouped by email. Run it inside a transaction and look at the rows with a SELECT first. Add a unique constraint afterwards so duplicates cannot return.
sqlDELETE p1 FROM Person p1 JOIN Person p2 ON p1.email = p2.email AND p1.id > p2.id;5 Explain git merge versus git rebase and when you would use each.
easyMerge joins two branches with a merge commit and preserves the true history. Rebase replays your commits on top of the target branch, giving a linear history but rewriting commit hashes. Rebase your own unpublished feature branch to keep it current; never rebase commits that others have pulled. Many teams squash-merge pull requests so the main branch stays readable. If you hit conflicts, resolve file by file, run the tests, and continue the rebase.
6 Describe a CI/CD pipeline for a Java microservice and what stages you would include.
mediumA commit triggers a build, which compiles, runs unit tests and static analysis, then packages an artefact or container image. Integration tests run against a test environment, and a security scan checks dependencies. The image is deployed to staging, smoke tests run, and a gated or automated promotion deploys to production with a rollback path such as blue-green or canary. Say what blocks a release: a failing test, a critical vulnerability or a coverage drop. Tools such as Jenkins, GitHub Actions or GitLab CI are interchangeable; the stages are the answer.
7 Mid-sprint, the product owner asks you to add an urgent feature. How do you respond in Scrum?
mediumScope in a sprint is a commitment, so first ask whether the item is really urgent and what the impact of waiting for the next sprint is. If it must go in, the team and product owner agree what comes out to make room, since capacity does not grow. If the change threatens the sprint goal, the product owner can cancel the sprint, which is rare. Raise it in the standup or a quick conversation, and record the decision. This tests whether you can negotiate scope calmly instead of silently absorbing work.
8 Checked versus unchecked exceptions in Java: what is the difference and how would you design exceptions for a payment service?
mediumChecked exceptions extend Exception (not RuntimeException) and must be caught or declared; unchecked ones extend RuntimeException. Use checked for recoverable conditions the caller can reasonably handle, such as InsufficientFundsException, and unchecked for programming errors such as null arguments. Do not swallow exceptions, and wrap low-level ones in a domain exception while keeping the cause. try-with-resources closes AutoCloseable resources even on failure. Log once at the boundary instead of at every layer.
9 Write a thread-safe Singleton in Java.
mediumThe simplest safe form is an enum with one constant, which is serialisation-safe and reflection-resistant. The alternative is the initialisation-on-demand holder idiom, where a private static inner class holds the instance and is loaded lazily by the JVM, thread-safe without locking. Double-checked locking also works but needs the field to be volatile. Singletons hurt testing, so mention preferring dependency injection of a single shared instance.
javaclass Config { private Config() {} private static class Holder { static final Config INSTANCE = new Config(); } static Config getInstance() { return Holder.INSTANCE; } }10 What would you unit test in a method that transfers money between two accounts?
mediumA successful transfer changes both balances by the right amount; an amount greater than the balance throws and leaves both unchanged; zero or negative amounts are rejected; transferring to the same account is handled; and a failure after the debit rolls back. Mock the repository and any notification service so the test checks only the transfer logic. Add one integration test with a real transaction. Mention naming tests by behaviour and keeping them independent of order.
11 Why Barclays, and why banking technology?
easyExplain what interests you in the problem space: payments, fraud detection, regulatory reporting or data platforms, each of which has real engineering challenges. Mention a specific technology you want to work with and tie it to something you have built. Show that you understand that in a bank, controls and reliability matter as much as speed. Keep it honest and short, and do not repeat the job description.
12 Tell me about a time you worked with someone who had a very different working style.
mediumDescribe the situation with specifics, what you noticed about the difference (for example detailed planner versus fast prototyper), and the adjustment you made, such as agreeing a shared checklist or a review rhythm. Give the result and what you learned about communication. Interviewers use this to test collaboration and respect, so avoid casting the other person as the problem.
13 You notice a teammate bypassing a required code review to meet a deadline. What do you do?
mediumBanks care about controls, so the answer must not be to ignore it. Talk to the teammate first, calmly, and explain the risk of skipping the review. Offer help to get the review done quickly. If the control is still bypassed or the risk is serious, escalate to your lead or the appropriate channel. Explain that you would act because skipped reviews can let defects or security flaws into production, not to blame anyone.
Frequently asked questions
Does Barclays ask Spring Boot questions?
For Java roles, candidates commonly report questions on Spring Boot and REST, especially when these appear on the resume. Prepare how requests flow through the layers.
Are there behavioural questions about ethics?
Banking interviews often include situational questions on controls and integrity. Prepare an answer that escalates properly rather than ignoring a problem.
What is Hack-o-Hire?
It is a Barclays campus hackathon. The 2025 edition ran online from 26 March to 2 April for selected campuses; see the hiring section for the source.
Where can I find current Barclays openings?
Use the Barclays careers site. This page quotes only the sourced facts listed in the hiring section.
Sources
Related guides
- Barclays coding round questions with solutions
- Deutsche Bank interview questions with answers (technology graduates)
- JPMorgan Chase interview questions with answers (software engineer)
- Java Interview Questions and Answers
- Spring Boot Interview Questions and Answers (Spring Boot 3)
- HR Interview Questions: Behavioural Prep for Freshers
More in Company Interview Questions
- Birlasoft Coding Round Questions with Solutions
- Birlasoft Interview Questions for Freshers
- BNY coding round questions with solutions
- BNY interview questions with answers (technology roles)
- Bosch Coding Round Questions with Solutions
- Bosch Interview Questions and Answers for India Engineering Roles
- BrowserStack Coding Round Questions With Solutions
- BrowserStack Interview Questions and Answers
- Cadence Coding Round Questions with Solutions
- Cadence Interview Questions and Answers for India R&D Software Roles
- Capgemini Coding Round Questions with Solutions
- Capgemini Interview Questions for Freshers