There are several ways you can learn Java such as YouTube videos, online courses, college, and more. You should begin with the basic syntax of Java programming after which you need to practice with what you have learned. There are hundreds of sites which offer free problems for people to solve using Java. This would help you apply your knowledge and learn how Java is used in real life. After learning Java remember to keep up to date with all the new features or technologies.