Hi guys I want to make a short but important reminder.
Unless you are sure about the version supported, DO NOT use new language features.
Experience : I was interviewing Wayfair (onsite) and in the coding round I wrote the algorithm to the question explaining my aproach and talking loud etc. Then close to the end, the interviewer told me to write the code to test my own code, it was a lists, maps kind of question, I thought I would test it by walking through the code but he wanted me to code it. I was like WHAT. but nothing you can do at that moment. I had to create many objects, add them to lists, maps etc even to test the easisiest test case he gave. .. and I tried to do it as fast as possible but made a mistake to use Java List.of(..) Map.of(..) functions. The interviewer did not tell anything about if those were supported and I found out that when I hit run and it failed. So time is up and I ended up failing the round. The interviewer feedback was really harsh on testing, he did not even tried to understand the code during or after the round and he literally said - I dont even know if this code works. I finished two Karat questions in 40 minutes and but failed to solve one easier question in 45 minutes on onsite.
In my case it costed me an offer.