In the functional programming paradigm, functions are first class objects
Are functions first class?
Basically, first-class citizenship simply means “being able to do what everyone else can do.” In JavaScript, functions are objects (hence the designation of first-class object).
Do Java functions have to be in a class?
However, all methods in Java must be part of a class. Static imports just let you pretend (briefly) otherwise.