To be honest, I don't know what java is used for anymore, I don't think I really see any programs use java other than specalty tools (like modding tools for games) but then I only know those are java because they use the default java graphics library. I think most cases, on a really pro level, people are probably using lots of dependencies and relying on some other api. But for the most part I don't know who codes in raw java anymore. The closest I gotten to making game engines with java is just messing around with Processing which is java with a graphics API. but not something for 'professional' programs.
Usually when I think of any programming language that is close to internet related, because the languages are so abstract, that when something says 'Webgl' or 'OpenGL' its not something they actually program in (I mean, unless you want to program your own graphics engine, which is not fun and takes years, and is kind of the reason I stopped using both java, and monogame framework, because I wanted more graphic functionality than what the default API could provide). Most cases, people are using a tool to 'build' with, that has implemented some form of graphics API. In my case, I try to program only in C#, because it's microsoft's version of Java (a type of program that is high level, has automatic garbage collection, cross platform support) and way powerful, it is supported by Unity game engine and Godot, I use Unity for it WebGL export (to allow the game to be 1 file, and work on all devices, and work in web browser).
Now I'm not a computer scientist, am an electrical engineer, so I can't say what the market is for programming jobs right now. However, if you are looking for a computer science career, with the few interviews I've don in the field, you may want to switch over to C# (ignore C and C++, C# is its own thing). and more importantly, since you are asking what people are using, if you switch to C# the reason it is much more powerful is due to the ".NET" (dot net) eco system. Basically, since microsoft has a lot of money, they did a lot of work developing C# to kick java's ass. there is .Net Core, which are various C# library to give C# more features (basically different kinds of API's) and the focus is to universal, so it works on any device or operating system. However, most developers I've interviewed with looked for .Net Framework, which is even more powerful than .Net Core, but only because these are libraries that work only on Windows (either because they can interface with existing programs better, or because they want to nudge everyone to stay on a window's based platform). and microsoft has done extensive documentation and walkthroughs on their site to get devs started and make them masters, while last I checked with Java its still just refence type documents and what ever books or videos you can find.
anyways, that's all I can think of to say related to the topic. C# > Java, more you can do with it, unless you are trying to aim for a particular market (like using the FX library to make custom gui's? idk what people use java for anymore)