🌐
GeeksforGeeks
geeksforgeeks.org › java › java-interview-questions
200+ Core Java Interview Questions and Answers (2025) - GeeksforGeeks
3 weeks ago - Java is one of the most widely used programming languages in top tech companies due to its reliability, scalability, and performance. It is a popular choice for building enterprise-level applications and backend systems. This article provides a comprehensive list of 200+ Core Java interview questions for both freshers and experienced developers.
🌐
InterviewBit
interviewbit.com › java-interview-questions
90+ Core Java Interview Questions and Answers | Freshers & experienced
Crack Core Java interviews with 150+ questions and answers for freshers and experienced developers OOP, collections, multithreading, JVM, exceptions, and more.
Published   May 4, 2026
Discussions

Looking for suggestions for java backend interview preparation
Hey :), I had an interview as a Junior Java Interview at a german neo bank. The stuff I am listing is in the order the interviewer asked me the questions. First, he told me stuff about the company and what they do. He asked one specific question about my last job and why I wanted to switch. He asked for the salary range I am looking for. He asked if I knew Spring, I told him I know the basics from a book, so he told me okay, we skip the Spring questions then. Java: -What is private, public, protected -What is an atomicint/ atomiclong -What is try with resources -What is an abstract class and what is it used for -What is dependency injection -What is an factory and when would you use it I gave classic abstract factory example with ui components -What is an interface -What is an immutable class and how would you define such a class I said: A class which variables can not be change after initialization thats why you need to pass them in the constructor. He also would have liked to hear: Variables should be defined private final & there should be no setters for the variables In java there are two memory spaces: Stack & heap, explain whats the difference MySql: -What is left join -What is inner join -What is having keyword (did not know, it is basically a WHERE after GROUP BY) -What is explain -What is an index and what is it used for -What is Union, what conditions does the data have to have to be able to make a union -What are db transactions Interview went well. Next I had to go there and code a simple REST API as the last interview step. The Rest API was something along the lines of: Code backend for user login Load data from csv into a spring db Return a list of that stored db data Do some computation to sort the db data and return it in order Write tests I had 5 hours total. Biggest Tip: If you go there for doing task on sight, make sure to have your ChatGpt/Copilot PW so you can use it there. Also, focus on completing all features and then think about doing good architecture or testing. The guy seemed so bored even though I had really good architecture and unittest. That was clearly not the focus. Focus was not about clean practices, but to finish the features functionally in the given time. I really hope you get the job my friend. Edit: formatting More on reddit.com
🌐 r/SpringBoot
11
32
September 28, 2024
Solved coding interview problems in Java - My collection of commonly asked coding interview problems and solutions in Java
These make me feel like I'm not a real developer. I've never been pressed to do anything like this. More on reddit.com
🌐 r/programming
298
1567
May 5, 2017
Java Backend Developer interview questions for 3+ years of experience
For a Java Backend Developer role with 3+ years of experience, you can expect a mix of technical and practical questions. Interviewers will likely ask about your experience with Spring Boot, microservices architecture, and SQL databases. They may probe your understanding of RESTful API design, dependency injection, and JPA. Be prepared to discuss your experience with version control systems like Git, and CI/CD pipelines. You might also face questions about handling concurrency, optimizing database queries, and implementing security measures in Java applications. Real-time scenarios could include designing a scalable microservice, troubleshooting performance issues in a Spring Boot application, or explaining how you'd implement caching in a distributed system. Expect to be asked about your problem-solving approach and how you've handled challenges in previous projects. I've found that practicing coding problems on platforms like LeetCode or HackerRank can help sharpen your skills for technical interviews. If you're feeling the heat, check out interviews.chat It might help you practice those tricky questions and boost your confidence. Full disclosure, I'm on the team that built it, and we really tried to make something useful for job seekers. Good luck with your interviews! More on reddit.com
🌐 r/developersIndia
8
3
August 28, 2024
Java interview
I get a candidates to do a small out of hours project (small web service). The main constraint is that you cannot use Spring/Boot. This sorts out the chaff ;) More on reddit.com
🌐 r/leetcode
2
1
December 6, 2023
🌐
Reddit
reddit.com › r/experienceddevs › java interview questions
r/ExperiencedDevs on Reddit: Java interview questions
November 21, 2025 -

Someone on linkedin posted the following questions he saw on an interview:

  1. What are virtual threads in Java 21 and how do they differ from traditional threads?

  2. How does record improve DTO handling in Java?

  3. Explain the difference between Optional.get(), orElse(), and orElseThrow().

  4. How does ConcurrentHashMap achieve thread safety internally?

  5. What are switch expressions and how are they different from switch statements?

  6. Explain the Fork/Join framework and its advantages.

  7. How does pattern matching for instanceof simplify Java code?

  8. How do you implement immutability in Java classes?

  9. What are the benefits of using streams and functional programming in Java?

  10. How does Java handle memory management for unreachable objects?

I've been a developer for over 10 years, mostly backend java, and I can only answer 7, 8, and 10. Am I right in thinking that these types of questions don't accurately gauge a developer's ability, or am I just a mediocre developer? Should I bother learning the answers to these questions (and researching other java interview questions)? On the one hand I don't think it would make me a better developer, but maybe this is what it takes to pass interviews? In previous interviews (I haven't interviewed since pre-covid) the technical part of an interview would just involve solving some problem on the white board.

🌐
W3Schools
w3schools.com › java › java_interview_questions.asp
Java Interview Questions
This page gives simple Java interview questions with short answers.
🌐
Itcollege
enos.itcollege.ee › ~jpoial › allalaadimised › reading › Java-Interview-Questions.pdf pdf
Java-Interview-Questions.pdf
In the following sections we will discuss about object-oriented programming and its characteristics, general questions regarding · Java and its functionality, collections in Java, garbage collectors, exception handling, Java applets, Swing, JDBC, Remote Method
🌐
Medium
medium.com › @pandyahimanshu09041995 › 50-most-common-java-interview-questions-and-answers-for-2025-28ed477ae23f
50 Most Common Java Interview Questions and Answers for 2025 | by Console Thoughts | Medium
November 16, 2025 - This article brings together the 50 most commonly asked Java interview questions, along with clear and concise answers that align with what real interviewers expect.
Find elsewhere
🌐
GitHub
github.com › in28minutes › JavaInterviewQuestionsAndAnswers
GitHub - in28minutes/JavaInterviewQuestionsAndAnswers: Java Interview Questions and Answers · GitHub
PDF : https://github.com/in28minutes/SpringIn28Minutes/blob/master/InstallationGuide-JavaEclipseAndMaven_v2.pdf · Video : https://www.youtube.com/playlist?list=PLBBog2r6uMCSmMVTW_QmDLyASBvovyAO3 · GIT Repository : https://github.com/in28minutes/getting-started-in-5-steps ... 54 . Is a super class constructor called even when there is no explicit call from a sub class constructor? ... 86 . Guess the output of this for loop (P.S. there is an error as the output of given question should be 0-1-2-3-4-5-6-7-8-9.
Starred by 1.4K users
Forked by 954 users
Languages   Java
🌐
GitHub
github.com › Devinterview-io › java-interview-questions
GitHub - Devinterview-io/java-interview-questions: 🟣 Java interview questions and answers to help you prepare for your next technical interview in 2026.
🟣 Java interview questions and answers to help you prepare for your next technical interview in 2026. - Devinterview-io/java-interview-questions
Starred by 523 users
Forked by 122 users
🌐
YouTube
youtube.com › watch
Top Java Interview Questions TO GET YOU HIRED in 2026 |Java Interview Preparation Guide |Intellipaat - YouTube
🔥Enroll for Intellipaat's Full Stack Web Developer Course: https://intellipaat.com/full-stack-web-developer-mean-stack-certification-training/#TopJavaInterv...
Published   February 4, 2025
🌐
DEV Community
dev.to › haraf › 100-senior-java-developer-interview-questions-and-answers-2025-edition-4f6n
🔥 100+ Senior Java Developer Interview Questions and Answers – 2025 Edition - DEV Community
May 16, 2025 - Preparing for a Senior Java Developer role in 2025? This comprehensive list of 100+ interview questions with answers covers real-world scenarios across:
🌐
Medium
medium.com › @mktechm › 5-years-experienced-java-coding-interview-questions-4470b1a17330
5+ Years experienced Java coding interview questions | by Manoj Pandey | Medium
July 29, 2024 - 3. Few common questions like -reverser a string without using inbuilt method, Fibonacci series, swap without using third variable, factorial problem , palindrome number problem. Sometimes interviewer ask these basic problem a to check logical ...
🌐
TalentSprint
talentsprint.com › blog › java-interview-questions-freshers
Java Interview Questions Every Fresher Must Know
April 17, 2026 - After clearing the aptitude round, you sit across from the interviewer. The first question comes in calmly: “Can you explain the difference between abstraction and encapsulation in Java?”
🌐
Quora
quora.com › What-are-the-introductory-40-Java-interview-questions-for-freshers-with-clear-and-concise-answers
What are the introductory 40 Java interview questions for freshers with clear and concise answers? - Quora
Answer: Well, when we take interview of a fresher for a job, we see what do we need from the candidate - s/he should be able to write a program, ie can code while understanding the requirement at hand. Can this be fulfilled by merely ‘mugging’ top-40/50/100 questions and their answers?
🌐
DataCamp
datacamp.com › blog › java-interview-questions
Top Java Interview Questions & Answers For All Levels 2026 | DataCamp
May 25, 2026 - A list of 61 Java interview questions suitable for developers applying to junior, intermediate, and senior roles.
🌐
Insight Global
insightglobal.com › home › blog › 21 java developer interview questions
21 Java Developer Interview Questions | Insight Global
January 10, 2024 - Do you know what to ask during your next Java Developer interview? This post covers 20+ Java Developer interview questions to ask.
🌐
Java Code Geeks
javacodegeeks.com › home › core java
150 Java Interview Questions & Answers - Java Code Geeks - 2026
August 1, 2025 - In the following sections we will discuss Java Interview Questions about object-oriented programming and its characteristics, general questions regarding Java and its functionality, collections in Java, garbage collectors, exception handling, Java applets, Swing, JDBC, Remote Method Invocation (RMI), Servlets and JSP.
🌐
Toptal
toptal.com › developers › java › interview-questions
Top 21 Technical Java Interview Questions & Answers [2026] | Toptal®
Each thread that accesses the get() or set() method of a ThreadLocal instance is accessing its own, independently initialized copy of the variable. ThreadLocal instances are typically private static fields in classes that wish to associate state with a thread (e.g., a user ID or transaction ID). The example below, from the ThreadLocal Javadoc, generates unique identifiers local to each thread.
🌐
YouTube
youtube.com › watch
Top 100+ Java Interview Questions and Answers | Complete 3 Hour Course on Java Interview Preparation - YouTube
Java Interview Questions and Answers. Top 100 Java Interview Questions and Answers. Top 100+ Java Interview Questions and Answers fr Beginners and Experience...
Published   April 21, 2026