There is no such thing Java being MORE secure than other languages.
Its the programs developed in the language which are secure or not. You can make a crappy application in Java and “secure” application in Python or vice versa.
When it comes to hacking into the program, all languages have their own vulnerabilities.