If you want to become a Data Scientist, Java is one of the best languages to learn. The reason being is
You can build complex ML/AI applications and make them scalable with Java.
Java has a faster execution speed compared to other languages
Java has numerous libraries like Java-ML, MLlib, Deeplearning4j, and Weka for Data Science and Machine Learning
With Java 8, you get Lambdas and Java 9 has REPL for iterative developments.
JVM makes it possible to run your code on multiple platforms making it platform-independent.
Being a strongly typed language, it doesn’t allow type errors.
Java offers ubiquity, which brings easy integration with the source code.
Java makes it easier to perform ETL operations and to computer complex ML algorithms.
Interested in Data Science? Check out this Data Science Course by Intellipaat.