Stateless Object in Java

Java requires all code to be in classes. Sometimes we may need to create an object with no state in order to help achieve a design pattern. We look at stateless objects and how they function.