2 AnswersNew Answer
Java might be good in some parts for robotics.But, mostly Python,C/C++ is recommended for Robotics.These two articles might clarify your doubts:- https://blog.robotiq.com/what-is-the-best-programming-language-for-robotics https://www.futurelearn.com/courses/robotic-future/0/steps/29368
You can also do some stuff with Java. Java is a very beginner friendly language with very good support by communities and many sample codes and sample projects. Therefore it would be better to keep on and continue with C++ directly afterwards. Skip all GUI stuff, additional frameworks and web stuff of Java.