Skip to content

CM2 — Collections, Exceptions & File I/O

Stéphane Derrode — Centrale Lyon · S7 Inf A3

:material-file-pdf-box: Download PDF

Topics covered

  • Collections framework overview
  • ArrayList<T> — dynamic arrays
  • HashMap<K,V> — key/value storage with Voiture
  • Stack<T> — LIFO structure
  • Exception hierarchy, try/catch/finally, multi-catch
  • Custom exception classes
  • File I/O with try-with-resources