Soon after Java was released, when the hype around the language was on fire, people used to say that it was going to replace COBOL - due to the "build once run everywhere" motto. Java indeed gained market share in the finance industry, but COBOL is still there.
Java is much bigger though in that space. Java's relative market share in the finance industry %LOC is waaaay bigger than COBOL's.