Although both Java and JavaScript aren’t related, it's fair to say that JavaScript is easier in comparison to Java. JavaScript has loosely written syntaxes whereas Java has strongly written ones.
Do check out the Intellipaat’s Java certification course which packs in 40hrs of online instructor-led training with 7 guided projects to practice with to gain the necessary hands-on experience in Java.
Also, do have a look at our YouTube video on the Difference Between Java And JavaScript to gain more insights.