The whole "omg, I'm 40 - no tech will hire me" is a bit overblown...
My employees were close to my age, and got jobs, but it took years. These were top-shelf C++ geeks.
I was treated pretty badly, and decided it wasn’t worth it.
I have noticed over the years that interviewing has gotten more onerous and ghosting has gotten more common. There's never any reason to treat people badly/ghost them. Even a thanks-but-no-thanks is better then radio silence.
In another 20-30 years, Java might be a lot less popular then Go, Rust, Python, Ruby, etc? So lots of Java that needs maintenance and not many people left to do it??
PHP is actually a good bet.
[0] https://w3techs.com/technologies/history_overview/programmin...
Those could be good bets too. Always fun to speculate whats still gonna be around in 20-30 years :-D
That's A LOT of websites...