Senior Java Developer Interview Questions

5,581 senior java developer interview questions shared by candidates

Can you explain the difference between abstraction and encapsulation in Java? How does inheritance work in Java, and what are its advantages and disadvantages? What is the difference between ArrayList and LinkedList? When would you use one over the other? Explain the concept of multithreading in Java and how it differs from multitasking. What are the differences between checked and unchecked exceptions in Java? Provide examples of each. How does Java handle memory management? Explain the role of garbage collection. What is the purpose of the static keyword in Java? How is it used in methods and variables? Can you explain the principles of SOLID design in Java? Give examples of how you would apply them in your code. What is the role of JDBC in Java? How would you connect to a database and execute SQL queries? Describe the difference between HashMap and HashTable in Java. When would you choose one over the other?

Senior Java Developer

Interviewed at Cosmofeed

3.7
Jun 27, 2024

Can you explain the difference between abstraction and encapsulation in Java? How does inheritance work in Java, and what are its advantages and disadvantages? What is the difference between ArrayList and LinkedList? When would you use one over the other? Explain the concept of multithreading in Java and how it differs from multitasking. What are the differences between checked and unchecked exceptions in Java? Provide examples of each. How does Java handle memory management? Explain the role of garbage collection. What is the purpose of the static keyword in Java? How is it used in methods and variables? Can you explain the principles of SOLID design in Java? Give examples of how you would apply them in your code. What is the role of JDBC in Java? How would you connect to a database and execute SQL queries? Describe the difference between HashMap and HashTable in Java. When would you choose one over the other?

1st round: Coding problems based on arrays & string. 2nd round: Java, Spring & Database related questions. 3rd round: With founders, they gave me some puzzle and were asking about CI/CD things as company's product was based on these things.
avatar

Senior Java Developer

Interviewed at OpsMx

4
Mar 18, 2023

1st round: Coding problems based on arrays & string. 2nd round: Java, Spring & Database related questions. 3rd round: With founders, they gave me some puzzle and were asking about CI/CD things as company's product was based on these things.

Viewing 3821 - 3830 interview questions

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