Any data that enters your system from outside a trust boundary should be treated as untrusted until proven otherwise. That includes form fields, API payloads, file uploads, headers, cookies, queue ...
If Java is not working in Windows 11/10, these solutions may help you troubleshoot the issue. Although, due to the lack of NPAPI support, Java applets stopped working in Microsoft Edge, Google Chrome, ...