Collections in Java • Arrays n Has special language support Iterator (i) Collection (i) Set (i), u • Iterators n • Collections (also called containers) n n HashSet…
1. QUIZstatic/dynamic typeWhich – if any – errors arise?Employee e = new Driver();a) e.setBonus(10);b) ((Manager)e).setBonus(10);No error CompilererrorExceptionon runtime1.…