Yes, Java can be used for Machine Learning and data science application development and it is also the preferred option by many developers. Java has many libraries and tools for Machine Learning. For example, Weka 3 is a fully Java-based workbench for performing machine learning, data mining, data analysis, and predictive modeling.
Also, watch this video on Machine Learning with Java: