The Equifax data breach was directly related to using Java specifically Apache Struts.
Banking software is generally riddled with security issues, if you assume something is secure without having it tested by a 3rd party chances are it’s got issues.
Every online banking system I've encountered (4+) was built in Java. None of them have been breached.
Please cite a counter reference