Java Software Developer Interview Questions

4,192 java software developer interview questions shared by candidates

//What will be minimum and maximum number //that will be printed? class AbcThread extends Thread{ private int[] _arr; public MyThread(int[] arr){ this._arr = arr; } public void run(){ for (int i=0;i<20 ; i++) { this._arr[0]++; } } public static void main(String[] args) { int[] arr ={0}; try { MyThread t1 = new MyThread(arr); MyThread t2 = new MyThread(arr); t1.start(); t2.start(); t1.join(); t2.join(); }catch(Exception ex){ System.out.println("Exception "+ex); } System.out.println(arr[0]); } }
avatar

Software Engineer - Java Developer

Interviewed at Quantum Machines

4.1
Nov 28, 2023

//What will be minimum and maximum number //that will be printed? class AbcThread extends Thread{ private int[] _arr; public MyThread(int[] arr){ this._arr = arr; } public void run(){ for (int i=0;i<20 ; i++) { this._arr[0]++; } } public static void main(String[] args) { int[] arr ={0}; try { MyThread t1 = new MyThread(arr); MyThread t2 = new MyThread(arr); t1.start(); t2.start(); t1.join(); t2.join(); }catch(Exception ex){ System.out.println("Exception "+ex); } System.out.println(arr[0]); } }

- Explain project that you have done (stack you used) - Explain how you overcome difficulties in a team project - Talk about yourself and previous job experience - Talked about general testing knowledge (coverage, mockito, junit, testcontainers, jenkins, automation with selenium, etc.) - General questions
avatar

Junior Java Developer/Software Engineer

Interviewed at Merkle

3.5
Jul 19, 2023

- Explain project that you have done (stack you used) - Explain how you overcome difficulties in a team project - Talk about yourself and previous job experience - Talked about general testing knowledge (coverage, mockito, junit, testcontainers, jenkins, automation with selenium, etc.) - General questions

Non-Tech: 1. Tell me about yourself 2. What industry were you in? 3. What techs do you know and used? 4. What is your current work arrangement? 5. Reason for job change (previous and now) 6. Were your projects in development or maintenance? Tech (Java, Web, Spring, Docker, SQL, Security): 1. What version of Java do you know? 2. Java - What is Interface and Abstract? When do you use one over the other? 3. Java - Differences between StringBuilder and StringBuffer. 4. Java - What is Message Digest? 5. Web - What is in a Http Request? 6. Web - How does a server differentiate between sessions? 7. Spring - How would you create an API? What layers would you use? 8. SQL - What do you know about the "HAVING" keyword? 9. Security - What do you know about Cryptography? 10. Security - Session vs Token-based authentication 11. Security - What is in a JWT? 12. Security - How do you validate/verify a JWT? 13. Security - Have you heard of RSA? 14. Docker - what can you tell me about Docker? 15. Docker - what is in a Dockerfile?
avatar

Java Principal Software Engineer / Technical Lead

Interviewed at Software International

3.8
Jul 13, 2024

Non-Tech: 1. Tell me about yourself 2. What industry were you in? 3. What techs do you know and used? 4. What is your current work arrangement? 5. Reason for job change (previous and now) 6. Were your projects in development or maintenance? Tech (Java, Web, Spring, Docker, SQL, Security): 1. What version of Java do you know? 2. Java - What is Interface and Abstract? When do you use one over the other? 3. Java - Differences between StringBuilder and StringBuffer. 4. Java - What is Message Digest? 5. Web - What is in a Http Request? 6. Web - How does a server differentiate between sessions? 7. Spring - How would you create an API? What layers would you use? 8. SQL - What do you know about the "HAVING" keyword? 9. Security - What do you know about Cryptography? 10. Security - Session vs Token-based authentication 11. Security - What is in a JWT? 12. Security - How do you validate/verify a JWT? 13. Security - Have you heard of RSA? 14. Docker - what can you tell me about Docker? 15. Docker - what is in a Dockerfile?

Viewing 681 - 690 interview questions

Glassdoor has 4,192 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.