Java 17 adds records, which are a more blunt tool than using const on method, you have to choose if a class is mutable or not, and not if a method is mutable or not.
For microservices, where you deals with data, it's quite effective because it works like typed JSON.
For microservices, where you deals with data, it's quite effective because it works like typed JSON.