Optional
wrapper class used as a return type for methods
Why are optionals useful?
Optionals are used for communication; Optional is a wrapper class representing that a method returns null to represent a lack of a value
Layer
a layer is a group of components that are reusable in similar circumstances
Tier
a group of layers; examples include data tier, client tier, middle tier, business tier, etc.
Collection
an iterable group of objects bound together by a DSA (List, Queue, or Set), as distinguishable from a Map
How do you set up sorting of custom objects in java?
Use Collections.sort() method; to do this, need to create a comparator and pass it as an argument to Collections.sort()
What is a sorted collection?
a sorted collection uses the Collections.sort() method (and usually a custom comparator object) to sort the collection in a specialized way.