Overview: In Java, we have two main categories of types: primitives and objects. However, there are situations where primitives need to be treated as object, such as when working with collections.