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.
Java Programmer Interview Questions
26,904 java programmer interview questions shared by candidates
What attracted you to the company?
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.
Removing of duplicate Employee object from a list based on their employee ID.
Q. How Hashmap works internally; Q. Ways of associating modifiers in method declaration?
swap two numbers without using third variable.
I was asked if I was authorized to work in the US.
web tech
Oops concept with examples
How would I approach a legacy system?
Viewing 1031 - 1040 interview questions