Like in any field and sport, you need to practice.
Java or C++? try both, then go deep on the one you feel more comfortable, keep pushing, keep building, keep learning.