2 ms·
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
by _old_dude_ 4y ago
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.