Sitemap
Real World Java

Real World Java

Real-world Java, Spring Boot, System Design, and AI Engineering. Practical code, production lessons and solutions to problems developers face in real projects.

Member-only story

Barclays Java Developer Interview

3 min readJul 17, 2025

--

Here’s a detailed guide for a Barclays Senior Java Developer Interview, including real-world-style questions, categorized by topic, along with sample answers and code where needed.

Press enter or click to view image in full size

🔷 Overview: What to Expect

Interview Rounds (Typical):

  1. Online Coding Test — HackerRank/CodeSignal-style
  2. Technical Round 1 (Core Java) — OOP, multithreading, collections
  3. Technical Round 2 (Spring + Microservices) — Spring Boot, REST, design
  4. System Design Round — Design a scalable backend system
  5. Behavioral + Managerial — STAR-based questions, team/project fit

🔹 Round 1: Core Java Questions

1. How does HashMap work internally in Java?

Answer:

  • HashMap stores key-value pairs.
  • Uses hashing: hashCode() and equals() methods.
  • Handles collisions using chaining (LinkedList or TreeNode).
  • Buckets are resized when load factor exceeds threshold (default 0.75).
Map<String, String> map = new HashMap<>();
map.put("name", "Sumit");

--

--

The Java programming language is one of the most popular languages today. Stay up to date with news, certifications, free learning resources and much more.