Initially, learn all the basic Java concepts from books, articles, or blogs and practice them by solving a wide variety of problems and developing simple projects. You can join various Java developer communities where you can find help as well as gain knowledge of Java. Make it routine to code in Java for a few hours everyday. Finally, develop some intermediate and advanced level projects.