Introduction
This interview questions are the main questions which picked by me.
Java
OOP
- What is the difference between abstract class and interface?
- What is the use-case difference between abstract class and interface?
Collections API
- What data structures you know in Collections API
- What is the differences between ArrayList and LinkedList
- Complexity of operations on ArrayList and LinkedList
- Difference Between Set and List
- How Hashmap works internally
- What is equals and hashcode for and what is their usage on Hashmap
- Complexity of Hashmap
- What is hash collision
Multi-Threading
- What is the difference between Thread and Runnable?
- What is volatile and synchronized keywords for?
- What is the difference between synchronized and Lock?
- What is race condition?
- What is deadlock, live-lock and thread starvation?