Java Programmer Interview Questions

26,904 java programmer interview questions shared by candidates

What is SQL Injection? Serialization vs Synchronized. Interface vs Abstract. Queue vs Stack, Vector vs ArrayList. Array vs ArrayList. What is a virtual function? When are these used: static, transient, protected, Iterator? Name 4 principles of Polymorphism. Can a lock be acquired on a class? How do you secure a web service? What is operator overload? Explain an ENUM. Which is more expensive? Array or LinkedList.
avatar

Java Developer

Interviewed at Global Healthcare Exchange

3.8
Apr 20, 2018

What is SQL Injection? Serialization vs Synchronized. Interface vs Abstract. Queue vs Stack, Vector vs ArrayList. Array vs ArrayList. What is a virtual function? When are these used: static, transient, protected, Iterator? Name 4 principles of Polymorphism. Can a lock be acquired on a class? How do you secure a web service? What is operator overload? Explain an ENUM. Which is more expensive? Array or LinkedList.

1. What are the issue might appear in multithreading? 2. Concurrent Hashmap how it works? why is better than synchronised block? 3. how to achieve locking? difference between lock and shynchronised 4. Design patterns related questions ( example of various design pattern) 5. how to secure micro services in Spring? 6. how to optimise a query if you find out its slow? 7. difference between arraylist and linkedlist, which one is better? 8. Gave me a scenario and asked me how to solve this? 9. Different Joins in SQL. 10. Future, callable, executor service. 11. S.O.L.I.D principle with examples.
avatar

Java Software Developer

Interviewed at J.P. Morgan

3.9
Jan 15, 2021

1. What are the issue might appear in multithreading? 2. Concurrent Hashmap how it works? why is better than synchronised block? 3. how to achieve locking? difference between lock and shynchronised 4. Design patterns related questions ( example of various design pattern) 5. how to secure micro services in Spring? 6. how to optimise a query if you find out its slow? 7. difference between arraylist and linkedlist, which one is better? 8. Gave me a scenario and asked me how to solve this? 9. Different Joins in SQL. 10. Future, callable, executor service. 11. S.O.L.I.D principle with examples.

Viewing 1031 - 1040 interview questions

Glassdoor has 26,904 interview questions and reports from Java programmer interviews. Prepare for your interview. Get hired. Love your job.