JPMorgan Chase interview questions with answers (software engineer)
Last updated 2026-11-19
JPMorgan Chase hires software engineers and technology analysts in India across Mumbai, Bengaluru and Hyderabad. Reports of its process commonly mention an online coding assessment and a final stage of several interviews, with a clear weight on Java-style engineering, SQL, design thinking and behavioural answers about teamwork.
These twelve questions are practice in that style. They are not past questions. Use JPMorgan coding round questions for the assessment and this page for the interviews.
| Typical roles | Software Engineer, Technology Analyst (India GCCs) |
|---|---|
| Rounds, as commonly reported | Online assessment, then technical and behavioural interviews, often several in one day |
| Heavy topics | Java or Python, DSA, SQL, REST, OOP and design, behavioural |
| Hiring news | See Hiring status below |
Rounds as commonly reported
Candidates commonly describe an online assessment (the 2026 hiring report quoted below mentions HackerRank-based assessments), followed by technical interviews and a final stage that combines technical depth with behavioural questions. Some student programmes also involve a team hackathon, usually called Code for Good. The exact steps differ by programme and year.
In the technical interviews, expect to code a short problem, explain a project from your resume and answer questions on OOP, databases and APIs. Behavioural questions are taken seriously and are scored, so prepare real stories instead of relying on your technical answers alone.
What to prepare
- One language in depth, with collections, strings, exceptions and concurrency basics.
- SQL joins, group by, window functions and indexing. See SQL window functions interview questions.
- REST, idempotency, microservice resilience and basic system design for a payments flow.
- Four STAR stories: teamwork, conflict, failure and initiative. See how to crack the HR interview.
- Your projects, to the level of why you chose each design.
Hiring status
For news that changes month to month, see JPMorgan Chase hiring, which is updated from sourced reports. This page keeps only the facts below, each with its source.
Apply only through JPMorgan Chase's own students and graduates careers pages, and check eligibility there.
- A July 2026 HR Katha report says JPMorgan plans to hire about 1,000 technology professionals for its India global capability centres (cloud architecture, cybersecurity, AI data pipelines), with about 55,000 staff in India GCCs and a Mumbai campus for about 30,000 staff planned by 2029.
- The same report describes HackerRank-based assessments for these hires. No dated application window is given; apply through the careers site.
JPMorgan Chase interview questions with answers (software engineer): questions with worked answers
1 Why is String immutable in Java, and what is the string pool?
easyImmutability makes strings safe as HashMap keys (the hash can be cached), safe to share across threads, and safe to use for class names, file paths and credentials that must not change after validation. The string pool is a cache of literals: two literals with the same text reference one object, so == can be true for literals but false for new String(...). Use equals for content. Concatenating in a loop creates many objects, so use StringBuilder, which is O(n) overall instead of O(n^2).
2 Compare HashMap, Hashtable, Collections.synchronizedMap and ConcurrentHashMap.
mediumHashMap is unsynchronised and allows one null key; it is unsafe under concurrent writes. Hashtable and synchronizedMap lock the whole map on every operation, so threads queue up. ConcurrentHashMap allows concurrent reads and locks only the relevant bin (using CAS and fine-grained synchronisation in modern Java), gives atomic methods such as computeIfAbsent and merge, and rejects null keys and values. For a shared in-memory counter or cache in a service, ConcurrentHashMap with merge is the usual answer. Iterating while others write is safe but weakly consistent.
3 Write SQL to list employees who earn more than their manager.
easySelf join the table on manager_id. The join condition links an employee row to the manager's row, and the filter compares salaries. Employees with no manager drop out of an inner join, which is what is wanted here. A subquery version works too, but the join is clearer and is what interviewers expect. Check whether the interviewer wants ties excluded (strictly greater).
sqlSELECT e.name FROM Employee e JOIN Employee m ON e.manager_id = m.id WHERE e.salary > m.salary;4 A payment API client times out and retries. How do you stop the customer being charged twice?
mediumMake the operation idempotent. The client sends a unique idempotency key with the request; the server stores the key with the result in the same transaction as the charge, and a retry with the same key returns the stored result rather than charging again. PUT and DELETE are idempotent by definition in REST while POST is not, so payment creation needs the explicit key. Also bound retries with exponential backoff and jitter, and return a clear status for in-progress requests. This is a staple of fintech interviews.
5 Design the classes for a bank account system supporting deposit, withdraw and transfer.
mediumStart with an Account class holding id, balance and a transaction list, with deposit and withdraw that validate the amount and refuse overdrafts by throwing a specific exception. Add a Transaction value object with type, amount and timestamp. Transfer must be atomic: lock both accounts in a fixed order (for example lowest id first) to avoid deadlock, debit then credit, and roll back if the credit fails. Use BigDecimal, not double, for money. Mention an interface for different account types (savings, current) rather than inheritance chains.
6 Explain volatile versus synchronized in Java and the producer-consumer problem.
hardvolatile guarantees visibility of a variable's latest write and prevents reordering around it, but it does not make compound actions such as count++ atomic. synchronized gives both mutual exclusion and visibility. Producer-consumer is solved with a bounded buffer: producers wait when it is full and consumers wait when it is empty. In Java, use a BlockingQueue such as ArrayBlockingQueue, whose put and take block correctly; hand-written versions use wait and notifyAll inside a while loop that rechecks the condition.
7 Detect a cycle in a linked list and say what its complexity is.
easyFloyd's algorithm: move a slow pointer by one and a fast pointer by two. If they ever meet, there is a cycle; if fast reaches null, there is none. Time is O(n) and space O(1), unlike the hash set approach which uses O(n) space. To find the cycle start, reset one pointer to the head and move both one step at a time until they meet again.
pythondef has_cycle(head): slow = fast = head while fast and fast.next: slow, fast = slow.next, fast.next.next if slow is fast: return True return False8 In a microservice architecture, one downstream service is slow. How do you stop it taking down the caller?
mediumSet timeouts on every remote call, and use a circuit breaker that opens after a failure threshold so the caller fails fast and gives the dependency time to recover. Add bulkheads (separate thread pools or connection limits per dependency) so one slow service cannot exhaust all threads, retries with backoff only for idempotent calls, and a fallback such as cached data. Monitor with metrics and tracing so you can see which hop is slow. Resilience4j is a common Java library for these patterns.
9 How does a database index work, and when can it hurt?
mediumMost relational indexes are B-trees: keys are kept sorted so a lookup, range scan or ORDER BY avoids reading the whole table, in O(log n). Every insert, update or delete must also maintain the index, so heavily written tables with many indexes slow down, and indexes cost storage. Low-cardinality columns such as a boolean rarely benefit. A composite index (a, b) helps filters on a or on a and b, but not on b alone. Use EXPLAIN to confirm the plan before adding one.
10 Check whether a string of brackets is balanced. What data structure and why?
easyA stack. Push each opening bracket; on a closing bracket, the stack must be non-empty and its top must be the matching opener. At the end the stack must be empty. Time O(n), space O(n). Two edge cases are an odd length and a string that starts with a closer. Counters work only for one bracket type; with several kinds the nesting order matters, which is why a stack is needed.
11 Why JPMorgan Chase?
easyAnchor your answer in the work: the scale of payments and trading technology, the engineering problems that come with it (reliability, security, regulation), and one programme or initiative you have genuinely looked into, such as the firm's student hackathons or its technology programmes. Then link it to what you have done, for instance a project where correctness mattered. Avoid generic praise of the brand. Close with what you want to learn and contribute in your first year.
12 Tell me about a time you worked in a team that was not working well.
mediumDescribe a real team project, the specific problem (unclear ownership, missed handoffs, one person carrying the work), and the action you personally took: proposing a task split, a short daily check-in, a shared board. State the result in concrete terms, such as the project shipped or the demo worked, and what you would do earlier next time. Interviewers for team-based hackathon-style programmes pay close attention to communication and how you treated teammates.
13 Describe a situation where you had to learn something quickly.
mediumPick a technology or domain you needed for a deadline: how you scoped what to learn, the sources you used, how you tested your understanding with a small build, and what you delivered. Be specific about the timeline and about one thing you got wrong and corrected. The aim is to show a repeatable learning method, not just that you were quick.
Frequently asked questions
Does JPMorgan ask Java questions?
Many India engineering interviews are Java-heavy, but Python and other languages are also used. Prepare the language on your resume in depth, including collections and concurrency.
What is Code for Good?
It is JPMorgan Chase's student hackathon where teams build software for non-profit organisations. Whether it applies to you depends on your campus and year, so check the careers site.
How important are behavioural questions?
Candidates commonly report them as a scored part of the final stage. Prepare specific stories on teamwork, conflict, failure and initiative.
Where can I see current openings?
Use JPMorgan Chase's own careers pages, and the sourced notes on the JPMorgan hiring page. No dates or numbers are quoted here beyond those sources.
Sources
Related guides
- JPMorgan coding round questions with solutions
- Goldman Sachs interview questions with answers (engineering analyst)
- Morgan Stanley interview questions with answers (technology analyst)
- SQL Window Functions Interview Questions
- Java Interview Questions and Answers
- HR Interview Questions: Behavioural Prep for Freshers
More in Company Interview Questions
- JPMorgan coding round questions with solutions
- Juspay Coding Round Questions
- Juspay Interview Questions with Answers
- KPIT coding round questions
- KPIT interview questions and answers
- KPMG coding round questions
- KPMG interview questions and answers
- L&T Technology Services interview questions
- LatentView Analytics Interview Questions with Answers
- LatentView Coding Round Questions
- LinkedIn Coding Round Questions With Solutions
- LinkedIn Interview Questions and Answers