Yes, it is true that Java is the best programming language to work with selenium automation. The Reasons are as follows:-
1. If you are a beginner with no programming knowledge then you must choose Java and you are good to go.
2. It is very easy to configure with other tools and plugins.
3. The execution speed of Java is very high.
If you want to begin with selenium, you must have to learn the concepts specific to any object-oriented programming. And you can choose Java:
Now let’s know-how and what you should learn Java:-
Learn the basics of Java so you can start learning how to declare variables, what are the data types, how loops works, what are the conditional statements, boolean operators, calling methods from various packages and classes.
Once you are comfortable with the basics, you can go for learning some more deep. which includes topics like Java collections, some basics of Data structures and Algorithms.
Then you can go and learn OOPS concepts completely.
If you want to learn Selenium using Java then you can have a look at the following selenium courses and Java Training course. In order to understand Java and Selenium more you can have a look at the following video tutorial:-