Java Guild course · Resources
Workspace · resources
Curated 2026-08-30. Every URL below was checked and returned 200.
@Test, @DisplayName, @Nested, assertThrows,
@TempDir, parameterised tests. Read § Assertions
before writing a single test in this project.
@TempDir javadoclibraryState.txt
files scattered around the repo. This is the single most useful annotation for
the Intermediate persistence requirement.
java.util.Optional javadoc (Java 11)Optional<Book> searchBook(String) over returning null, and for knowing the
documented limits (not for fields, not for parameters).
java.lang.Object javadoc — equals / hashCode contracts (Java 11)equals contract and the hashCode
consistency rule verbatim in an interview.
java.util.Scanner javadoc (Java 11)nextInt() throws InputMismatchException, and what hasNextInt()
does instead. The starter's menu loop dies on any non-numeric keypress.
equals/hashCode), 17 (minimise mutability), 55 (return Optional),
70–73 (exception design). Name the item number in interview and you sound read.
library.borrowBook(title) beats library.searchBook(t).borrowBook().
Library should not also be a file format. Read the
actual post — SRP is about reasons to change, not "one job", and most
candidates get this wrong in interview.
Optional change.
viewAvailableBooks returning a List is a naming smell worth
discussing.
release-source 11 warning and is
actually more correct than source+target.
final parameters and javadoc
on every member — it was written to pass sun_checks.xml, which is Checkstyle's
default when no configLocation is set. Match it or your report goes noisy.
sun_checks.xml encodes. Historical, but this is where the rules
the pom will judge you by actually come from.
type(scope): subject convention. Adopt deliberately or not at
all — and be ready to say which and why.
git archive documentation.git, which
matters for how you package the submission.
Optional overkill here?"