COBOL is at least an honest language, while Java-J2EE is an standard initially made by SUN and the big ones for selling monstruous servers to big departments which contract big consultancy companies for very long time as well as very expensive application servers.
Java-J2EE was exactly what the mainframe server and the big consultancy firms and the big software departments of big companies needed to justify and maintain and augment their big budgets in the transition from mainframes to the "internet age"