Java - A good place to begin if over all goal is ML and Ai?
If goal is to develop ML algorithms then focus on Maths concepts linear algebra, probability and statistics. Try out CS problem solving basic data structure and algorithms. 
Python has good ML libraries but if you know java then you can pick python easily.