Siemens interview question

Java 21 related stuffs and functionalities