For the fundamentals, sure, but many of the top sellers are going to be on things like React, Next, etc.
And in ten years after react is forgotten about, there will still be companies actively hiring Java developers
And in ten years after react is forgotten about, there will still be companies actively hiring Java developers