HSBC interview questions with answers (technology graduates)
Last updated 2026-11-19
HSBC runs large technology centres in India and hires graduates into software engineering and related roles. Candidates commonly describe a process that mixes online assessments, possibly a recorded video interview, and technical and HR conversations. Technical questions often cover core Java, Spring, databases, Linux and delivery tools such as Jenkins and Docker.
The thirteen questions below are practice in that style, with worked answers. They are not past questions. For the online assessment, see HSBC coding round questions.
| Typical roles | Graduate software engineer, technology analyst (India) |
|---|---|
| Rounds, as commonly reported | Online assessments, possibly a video interview, technical and HR interviews |
| Heavy topics | Java, Spring, SQL, Linux, DevOps, cloud basics |
| Hiring news | See Hiring status below |
Rounds as commonly reported
Candidates commonly report online assessments (which may include logic or game-style tasks as well as coding), a recorded or live video interview, and one or more technical and HR interviews. The sequence differs by programme and year, so rely on your own invitation for the exact steps.
Technical interviewers often start with your resume and the languages and tools on it. The questions usually test whether you understand how things work and why, such as how the JVM runs code, not only the syntax.
What to prepare
- Core Java, multithreading, collections and the JVM. See Java interview questions.
- Spring Boot REST, exception handling and testing.
- SQL joins and aggregation, basic Linux and a view of CI/CD and containers.
- Practice answering aloud for a video interview. See how to crack the HR interview and how to crack the technical interview.
Hiring status
There is no HSBC hiring-news page on this site, and this page quotes no hiring numbers, dates or packages because none are sourced here. Check HSBC's own careers site for current India graduate and technology roles, eligibility and dates, and apply only there.
HSBC interview questions with answers (technology graduates): questions with worked answers
1 Explain method overloading and overriding, and how Java decides which method runs.
easyOverloading means several methods with the same name and different parameter lists in one class, resolved at compile time from the argument types. Overriding means a subclass redefines an inherited method with the same signature, resolved at run time from the object's actual class, which is what makes polymorphism work. An override cannot reduce visibility or throw broader checked exceptions, and @Override makes the compiler check the signature. Static and private methods are hidden, not overridden, and fields are never polymorphic.
2 What happens when you run a Java program? Explain the JVM, bytecode and the JIT compiler.
mediumjavac compiles source into platform-independent bytecode in class files. The JVM's class loaders load classes on demand, the verifier checks bytecode safety, and the interpreter starts executing. The JIT compiler watches for hot methods and compiles them to native code, with optimisations such as inlining, so long-running programs get faster after warm-up. Garbage collection reclaims unreachable objects. This is why the same jar runs on different operating systems and why micro-benchmarks need a warm-up phase.
3 What are the ways to create a thread in Java, and how do Runnable and Callable differ?
mediumYou can extend Thread or implement Runnable; implementing Runnable is better because it separates the task from the thread and leaves your class free to extend something else. In practice submit tasks to an ExecutorService instead of creating threads yourself. Runnable.run returns nothing and cannot throw checked exceptions; Callable.call returns a value and may throw, and submit returns a Future whose get blocks for the result and rethrows failures wrapped in ExecutionException. Always shut the executor down.
javaimport java.util.concurrent.*; class Demo { public static void main(String[] args) throws Exception { ExecutorService ex = Executors.newFixedThreadPool(2); Future<Integer> f = ex.submit(() -> 6 * 7); // Callable System.out.println(f.get()); // 42 ex.shutdown(); } }4 In Spring, how do you handle exceptions globally in a REST API?
mediumUse a class annotated with @RestControllerAdvice containing @ExceptionHandler methods. Each method maps an exception type, for example a custom AccountNotFoundException, to an HTTP status and a consistent error body with a code and message, so controllers stay free of try and catch blocks. Validation failures from @Valid arrive as MethodArgumentNotValidException and are handled in the same place. Never leak stack traces or internal messages to clients; log them with a correlation id instead.
5 SQL: list every department with its employee count, including departments that have no employees.
easyLEFT JOIN departments to employees and count a column from the employee side. COUNT(e.id) ignores NULLs, so empty departments show 0, whereas COUNT(*) would show 1 because the joined row exists. An inner join would drop empty departments altogether, which is the usual mistake.
sqlSELECT d.name, COUNT(e.id) AS employees FROM Department d LEFT JOIN Employee e ON e.dept_id = d.id GROUP BY d.id, d.name;6 Explain what a Jenkins pipeline does and how Docker differs from a virtual machine.
mediumA Jenkins pipeline defines build stages as code (a Jenkinsfile): check out, build, test, scan, package, deploy, with each stage failing the run if it breaks. A virtual machine virtualises hardware and runs a full guest operating system, so it is heavy and slow to start. A Docker container shares the host kernel and isolates only the process and filesystem, so it starts in seconds and packs densely, at the cost of weaker isolation than a VM. Pipelines usually build an image once and promote the same image through environments.
7 What are IaaS, PaaS and SaaS, and why might a bank prefer a hybrid cloud?
mediumIaaS gives virtual machines, storage and networks that you manage above the hypervisor; PaaS gives a managed platform for running your code without managing servers; SaaS is a finished application. A hybrid cloud keeps sensitive or latency-critical systems and regulated data in private infrastructure while using public cloud for elastic workloads such as analytics or testing. Reasons include data residency rules, existing investments and risk appetite. The cost is the complexity of connecting, securing and monitoring both worlds consistently.
8 Which Linux commands would you use to find a running process, stop it, and schedule a script every night at 2 a.m.?
easyps with grep finds a process, kill sends it a signal (SIGTERM by default; kill -9 is a last resort because it gives no chance to clean up), and cron runs scheduled jobs. A crontab line has five time fields: minute, hour, day of month, month and day of week. Redirect output to a log so failures can be investigated. Use crontab -e to edit your schedule.
textps -ef | grep batch_job kill 12345 # crontab -e 0 2 * * * /opt/jobs/nightly.sh >> /var/log/nightly.log 2>&19 Evaluate a postfix expression such as 2 3 1 * + 9 -.
easyUse a stack. Push numbers; on an operator, pop the top two values, apply the operator with the earlier value on the left, and push the result. The answer is the single remaining value. Here 3 x 1 = 3, 2 + 3 = 5, 5 - 9 = -4. Time O(n), space O(n). The common mistake is reversing the operand order for subtraction and division.
pythondef eval_postfix(tokens): st = [] for t in tokens: if t in "+-*/": b, a = st.pop(), st.pop() st.append(a + b if t == "+" else a - b if t == "-" else a * b if t == "*" else int(a / b)) else: st.append(int(t)) return st[0]10 If your process includes a recorded video interview, how should you structure your answers?
mediumPractise out loud with a timer, since recorded answers usually have a fixed thinking and answering time. Use a clear structure: for behavioural questions, situation, action and result; for technical ones, the idea, then the example, then the trade-off. Look at the camera, speak at a steady pace, and test your microphone, lighting and connection beforehand. Do not read a script, but do keep two or three prepared stories ready. Check the invitation for the rules.
11 Why HSBC, and how do you feel about working with teams in other countries?
easyMention the international scope of the bank and what that means for technology: platforms used across regions, standard processes and communication with colleagues in different time zones. Show that you can work asynchronously: written updates, clear handovers and shared documentation. Link to a project where you collaborated with people who were not co-located, even if it was only a college team working remotely.
12 How do you handle conflicting priorities from two stakeholders?
mediumMake the conflict visible: confirm each request's deadline and impact, then bring the stakeholders or your lead together, or ask your lead to decide, rather than silently choosing. Propose options with trade-offs, such as splitting the work or delivering a smaller piece first. Document the agreed priority. Give a real example, such as two teammates needing your review at the same time.
13 Tell me about a time you led a group, formally or informally.
mediumPick a project where you coordinated others: how you split tasks, set a simple cadence, handled someone falling behind and made decisions when people disagreed. Give the outcome and what you would change as a leader. Credit teammates honestly. Leadership at graduate level is mostly ownership, clarity and follow-through.
Frequently asked questions
Does HSBC use video interviews?
Candidates commonly report a recorded video interview in some graduate processes. Check your invitation for the format and rules.
What technical topics does HSBC ask about?
Commonly Java, Spring, SQL, Linux and DevOps basics, depending on the role and resume.
Are there game-based or logic assessments?
Some graduate cycles are reported to include them alongside coding. Formats change, so follow your invitation.
Where can I see current openings?
Use HSBC's own careers site. This page quotes no hiring numbers because none are sourced here.
Related guides
More in Company Interview Questions
- IBM coding round questions
- IBM interview questions and answers
- Info Edge (Naukri) Interview Questions with Answers
- Info Edge Coding Round Questions
- Infosys Coding Round Questions with Solutions
- Infosys Interview Questions for Freshers
- Intel Coding Round Questions with Solutions
- Intel Interview Questions and Answers for India Software Roles
- Intuit Coding Round Questions with Solutions in Python and Java
- Intuit Interview Questions and Answers for SDE-1 Roles
- JPMorgan Chase interview questions with answers (software engineer)
- JPMorgan coding round questions with solutions