Java: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. What does System.out.println do?
2. Which type stores true or false?
3. What is the value of 10 % 3?
4. Which loop suits going through every item of an array without an index?
5. What does the final keyword on a variable mean?
6. What is printed by "a" + 1 + 2?
7. Which exception does a[5] throw for an array of length 5?
8. What does @Override ask the compiler to check?
9. Which collection removes duplicates automatically?
10. What does Comparator.comparing(Person::age).reversed() sort by?
11. What does a stream do to its source collection?
12. Why must equals and hashCode be overridden together?
13. Why is List<Integer> not a List<Number>?
14. Which exception type should mark a bug in the caller's arguments?
15. Why prefer ArrayDeque to Stack in new code?
16. What is wrong with catching Exception and doing nothing?

Practical assessment: A library loans system

Without using hints, write a Java program that manages a small library from commands, in the style of the last lesson.

Final project

A student records system: Build a console program that manages students, courses and marks: enrolment, marks entry, transcripts, averages and rankings, with every rule enforced and every error reported clearly.

How it is evaluated

To complete this course