To take an example, Java can be used for a great many things. It's nowhere near as specialized as a tack hammer. So this isn't as easy a decision as you are making out.
Re:Should I learn C++ or Python?
by AstralStorm on Tuesday February 14, 2017 @01:59AM
(#13641762)
Technically, you should learn the most general tools first. Java is not one, it is designed to be explicitly limited.
Both Python and C++ are general albeit Python had a major disadvantage in performance while C++ in clarity. (That said, more modern versions of both have the disadvantages reduced.)
How is Java "designed to be explicitly limited"? It's a general purpose programming language with a huge number of libraries available.
Maybe you want to make cabinets, or houses, or decks. Pick the tools that help you make what you want to make.