Is it because java syntax is relatively simple, easy to implement, and directly contacts the idea of algorithms, and does not have as many grammatical details as using C plus?

It is recommended that students who are new to data structure use C directly, and Java is never recommended. C enables you to further understand the implementation of the underlying code and the algorithm thought. Java encapsulation is too deep, making it easy to ignore the underlying code (the underlying code is not easy to see). For the algorithm, I suggest to use C plus or Java. The algorithm focuses on thought and implementation, followed by language (without considering the performance of the algorithm). If you can use C best, you will benefit greatly in the future.