Editorial draft for review. Prepared for the JavaWallah learning resource library.
Explain object-oriented programming
Use a small example to explain encapsulation, inheritance, interfaces and polymorphism. Describe when composition is useful.
Compare collections with a use case
Explain when you would choose a List, Set or Map. Discuss duplicates, ordering and lookup requirements.
Discuss failures and concurrency
Explain checked and unchecked exceptions. Describe how two threads sharing mutable data can create a race condition.
Practise out loud
Give a short answer, show a code example and explain a tradeoff. Ask a peer to question your assumptions.