Java Backend Interview Questions and Answers

Recently appeared for a Backend SDE interview (3–4 YOE) Sharing some of the questions discussed during the interview. --- Java & Problem Solving - Write a program to print sum of digits and sum of numbers - Print elements of an array (approach discussion) - Count occurrence of words using Java 8 Streams --- Java Core & Concurrency - Difference between Hashtable, HashMap, and ConcurrentHashMap - If two threads use the same map, what issues can occur and how can they be solved? - Features introduced in Java 8 --- Spring Boot & Microservices - What is Dependency Injection in Spring Boot? - RestTemplate vs WebClient vs Feign Client - What is an API Gateway and why is it used? --- Database & Hibernate - What is the N+1 problem in Hibernate? - How do you maintain consistency in a database in a microservices architecture? --- System Design & Concepts - Microservices vs Monolith - Types of HTTP methods in RESTful APIs --- Open to hearing what kinds of questions others are seeing in backend interviews. #BackendDevelopment #Java #SpringBoot #Microservices #SystemDesign #InterviewExperience

the ConcurrentHashMap vs HashMap vs Hashtable question with multithreading scenario is a classic. also the N+1 problem plus database consistency in microservices combo shows they care about real production knowledge not just theory

To view or add a comment, sign in

Explore content categories