You are right to a degree about 'sellable tech' but I would hate programming if I had only learned Java and stuck to it because it's popular.
For me, I actually feel passionate about tech choices because some tech is just awesome and fun. Most of the enterprise shit is not fun at all, but very sellable.
But as a junior Dev, I would start with sellable of course.