In my niche, a COTS application that was written in COBOL has been migrating to Java for the last few years (happens to be an Oracle product through acquisition, but that's probably not relevant). As of now, the product is wholly written in Java, though large parts were passed through a COBOL-to-Java converter.
Java isn't going away any time soon - there are massive amounts of enterprise software now written in the language that will need to be maintained for years to come - but it's probably not the language of choice for a startup writing something custom.
Keep in mind that the HN community may not be indicative of the broader industry.
In my niche, a COTS application that was written in COBOL has been migrating to Java for the last few years (happens to be an Oracle product through acquisition, but that's probably not relevant). As of now, the product is wholly written in Java, though large parts were passed through a COBOL-to-Java converter.
Java isn't going away any time soon - there are massive amounts of enterprise software now written in the language that will need to be maintained for years to come - but it's probably not the language of choice for a startup writing something custom.
Keep in mind that the HN community may not be indicative of the broader industry.