Jul 16, 2024
ArrayList
, LinkedList
, HashSet
, etc.Comparable
and Comparator
Comparable
: used to define natural ordering within a classComparator
: used for defining multiple ways to compare objectsequals()
method vs. ==
equals()
method: Used for logical comparisons==
operator: Checks if two references point to the same objectOptional
class to avoid null
references.isPresent()
, .ifPresent()
, .orElse()
, and .orElseThrow()
Serializable
, Cloneable