Interview for a mid-level Java developer

Опубликовано: 18 Июнь 2026
на канале: Павел Сорокин
24,424
495

FREE Java learning and interview preparation materials from me: https://t.me/JavaLearnBot?domain=Java...

My Java development course: https://sorokin.school/?utm_source=yo...

Telegram channel: https://t.me/S0R0KlN

In this video, I show you how the Java developer interview process works.
What questions might be asked and how to answer them.

Timecodes:
00:00 – Introduction
00:29 – Interview begins
01:54 – HashMap structure. How does the put method work in a HashMap?
05:58 – About immutable objects
07:07 – What is a String Pool in Java?
8:15 - What are the differences between ArrayList and LinkedList methods?
11:41 - Explain how the garbage collector works in Java. What types of garbage collectors are there?
14:26 - Explain how a synchronized block works. What is the difference between a synchronized method and a synchronized block?
18:58 - What is volatile and when is it appropriate to use it?
23:27 - What are the challenges of multithreading? How can they be solved?
26:33 - What is deadlock and how can it be avoided in multithreaded applications?
28:08 - What is the difference between optimistic and pessimistic locking approaches?
31:04 - What are Dependency Injection and Inversion of Control in Spring?
32:28 - What are the different methods of dependency injection in Spring?
34:33 - What are the different bean scopes?
34:58 – Singleton and Prototype. What's the difference between them?
37:04 – Case Study
39:48 – How does Spring Boot simplify application development? What annotations are used to configure Spring Boot?
41:03 – What are ACID transaction properties and why are they needed?
43:31 – What are the different isolation levels in SQL?
45:59 – Explain how the @Transactional annotation works in Spring.
49:43 – How can I speed up database queries?
54:35 – What types of indexes are there in databases and how do they affect query performance?
58:15 – Why are microservices needed and how are they different from monoliths? What problems do they solve? ApiGateway Pattern
01:07:02 – Case Study
01:08:59 – Case Study
01:15:25 – Tell us about Kafka
01:20:25 – End