Recently appeared for a Java Developer interview (3–4 YOE) Sharing some of the questions that were asked during the process. --- Java Core & Internals - What is Metaspace in Java? - What features were introduced in Java 8+? - What is Spliterator? - What is the difference between String.join() and Collectors.joining()? --- Spring Boot & Security - What does @EnableAutoConfiguration do? - What profiling tools can be used with Spring Boot? - Can you explain Spring Security? - What is salting in the context of security? --- Database, Caching & Optimization - How do you optimize slow database queries? - If data is updated in the database, how do you maintain cache consistency in Redis? --- Debugging & Edge Cases - Identify issues in a given code snippet (e.g., division by zero) - How would you handle processing a large file or dataset that may cause OutOfMemory errors in Java? --- System Design - How would you implement pagination? --- Miscellaneous - What does git stash pop do? --- Open to hearing what kinds of questions others are seeing in backend interviews. #BackendDevelopment #Java #SpringBoot #SystemDesign #Redis #InterviewExperience
Thanks for sharing 🙌
Insightful 👍
the Redis cache consistency question when DB is updated is tricky. cache-aside with TTL plus event-driven invalidation via Kafka is the production-grade answer. also Metaspace and Spliterator questions show they go deep into JVM internals