Java supports functions since the start. A pure function doesn’t mutate the state and always produce the same output for the same input. This approach is not new, we have been doing this for years.