Java Problem Solving Interview Questions

Recently appeared for a Backend SDE interview (2-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

To view or add a comment, sign in

Explore content categories