If someone earning half your salary is able to satisfy everything that you offered to the company, I think the problem is not what you mentioned but it is a reflection of inflated salaries in the valley.
I think it is a good thing if this happens. This salary inflation has made it impossible for anyone else to afford living there. It will also help curb the entitlement that valley IT employees carry around thinking that they are always changing the world.
All the problems here are solved till Java 15 in every iteration. A lot of opinion in Java is based on comparing old versions of Java with latest version of other languages