Skip to content

Instantly share code, notes, and snippets.

@Echocage
Last active April 24, 2016 06:24
Show Gist options
  • Save Echocage/4d767dc812c11f59c8655d828eb0db46 to your computer and use it in GitHub Desktop.
Save Echocage/4d767dc812c11f59c8655d828eb0db46 to your computer and use it in GitHub Desktop.
Java Questions
1. Why do we hide data behind getters and setters?
2. What is the difference between an `ArrayList` and a `LinkedList`? When should you use them?
3. Explain insides of a `HashMap`
4. Explain insides of a `TreeMap`
5. Abstract class vs interface
6. Why calling public methods in a constructor is a bad practice?
7. Overriding vs overloading
8. Explain exceptions (checked/unchecked)
9. try-catch-finally - in which order should the exceptions be handled?
10. What are generics? Why don't just use `Object`?
11. When should reflection be used and why you should avoid using it?
12. When are annotations used?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment