No. They are completely different. Even when you know both of them you should be writing things that work with plain HTML and PHP, then layering JS on top. I learned Java script coming from Java myself.
Is Java a dying language?
Over the years, many had predicted that Java was on the verge of dying and would soon be replaced by other, newer languages. … but Java weathered the storm and is still thriving today, two decades later.
Is Java outdated 2020?
In 2020, Java is still “the” programming language for developers to master. … Given its ease of use, continual updates, enormous community, and many applications, Java has continued and will continue to be the most-used programming language in the tech world.
Can I learn JS after Java?
I suggest taking a look at Typescript and learning some popular frontend framework (Angular, React, Vue). If you are interested in backend, take a look at Node. js. If you would like to learn a different backend language, start learning Java or C#.