Member-only story
Barclays Java Developer Interview
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.
🔷 Overview: What to Expect
Interview Rounds (Typical):
- Online Coding Test — HackerRank/CodeSignal-style
- Technical Round 1 (Core Java) — OOP, multithreading, collections
- Technical Round 2 (Spring + Microservices) — Spring Boot, REST, design
- System Design Round — Design a scalable backend system
- Behavioral + Managerial — STAR-based questions, team/project fit
🔹 Round 1: Core Java Questions
1. How does HashMap work internally in Java?
Answer:
HashMapstores key-value pairs.- Uses hashing:
hashCode()andequals()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");







