I'm referring of course to the evergreen https://news.ycombinator.com/item?id=19877916 .
I'm also wondering out of concern for my career, both now and in the future. I like Java, and I think I want to dive deep into it over the next 5-10 years to provide a solid economic baseline for my family. I know the time I can dedicate to self-study, and even the speed at which I can absorb new concepts, will slowly diminish over that time, so I'd like to make a bet on something I'm somewhat confident will last, even if it doesn't get paid the most or look the shiniest to new generations of programmers. Other languages and ecosystems I've looked into for this purpose are PHP, Python, and good old fashioned C/C++.
That said, there's a career in knowing JavaScript, SQL, and any other language in the top 7 in the TIOBE. https://www.tiobe.com/tiobe-index/