And I say this as someone who's been in the Java/JVM space for almost 20 years. J2EE was a bad idea at the time, and has long been consigned to the scrap heap by anyone who knows what they're doing. I'm honestly amazed they were still investing in it up until this point. Just say "container managed persistence" to a Java dev and listen to them laugh
All the major enterprises using Java that I have knowledge of dumped EE years ago (if they ever even adopted it), they're all in the Spring/Hibernate camp (which is looking pretty old itself by now). The smaller, newer shops skipped over even that and are doing microservices with stuff like Akka.
The core Java language is doing OK, 8 brought in some much needed modern language features, although 9 looks much more incremental. Honestly the JVM as a platform (Scala et al) is more exciting to me than Java as a language, but it does the job.