Senior Java Programmer Interview Questions

5,561 senior java programmer interview questions shared by candidates

What is the difference between abstract classes and interfaces in Java? Explain the concept of multithreading in Java and how it is achieved. How does Java handle memory management and garbage collection? What are the access modifiers in Java, and how do they differ from each other? What is the difference between static and non-static methods in Java? How do you handle exceptions in Java? Explain the try-catch-finally block. What is the purpose of the "final" keyword in Java, and where is it used? What are the different types of inheritance in Java, and how do you implement them? How does Java support method overloading and method overriding? Explain the "equals" and "hashCode" methods in Java, and why are they important when dealing with objects. How would you read and write data to a file in Java using I/O streams?
avatar

Sr. Java/J2EE Developer

Interviewed at KREATIVE

3.9
Jul 17, 2023

What is the difference between abstract classes and interfaces in Java? Explain the concept of multithreading in Java and how it is achieved. How does Java handle memory management and garbage collection? What are the access modifiers in Java, and how do they differ from each other? What is the difference between static and non-static methods in Java? How do you handle exceptions in Java? Explain the try-catch-finally block. What is the purpose of the "final" keyword in Java, and where is it used? What are the different types of inheritance in Java, and how do you implement them? How does Java support method overloading and method overriding? Explain the "equals" and "hashCode" methods in Java, and why are they important when dealing with objects. How would you read and write data to a file in Java using I/O streams?

Round 1-> create threads, SQL query for top 3 salary. Round 2-> Question 1) Insertion sort Question 2) Loop in a link list Question 3) String Manipulation Question 4) Merge sort Round 4: Q1) Duplicate char in a String using java-8 Q2) completable future example Q3) Java-8 related programs Q4) MongoDB queries
avatar

Senior Java Developer

Interviewed at Knoldus Software

3.8
Aug 6, 2020

Round 1-> create threads, SQL query for top 3 salary. Round 2-> Question 1) Insertion sort Question 2) Loop in a link list Question 3) String Manipulation Question 4) Merge sort Round 4: Q1) Duplicate char in a String using java-8 Q2) completable future example Q3) Java-8 related programs Q4) MongoDB queries

Viewing 241 - 250 interview questions

Glassdoor has 5,561 interview questions and reports from Senior java programmer interviews. Prepare for your interview. Get hired. Love your job.