Infineon Technologies Interview Question

If all the Java code is written in 1.6, what are the potential risks that can be mitigated by migrating to latest Java versions?