Java and .Net are growing fields and cannot say one is better than the other. Here I have compared a few aspects of Java and .Net. Java is a programming language supports various operating systems like Windows, Linux, and macOS but whereas .Net supports different versions of windows but not other operating systems.
Java is an open-source platform. So, in case of any security issues, it will be difficult to solve issues because of the lack of resources and professional support.
It is difficult to say which is easy to learn since its subjective and depends on the individual. In comparison to job opportunities. There is a 1.16 percentage of total job postings are there for java and 1.03 percentage of total job postings for .Net. In India, the average salary of a senior java developer is 9.28 LPA and senior .Net developer is 8 LPA.
If you are interested to learn Java, I would suggest Java course by Intellipaat
You can watch this video on Java vs .Net for choosing which is better for you: