Java and JavaScript isn’t related in any form, Java is an object-oriented programming language whereas JavaScript is a scripting language. While the name JavaScript was originated as a marketing deal between Sun corporation which developed Java and the inventor of JavaScript which is Netscape which combined its powerful browser with the Java runtime to create a scripting language which has similar syntaxes to java.
Originally it was named LiveScript, then it was renamed JavaScript.
Searching for a good course on Java to learn and get certified? Then check out the Java certification course of 40hrs which also includes 7 guided projects to help you in gaining the necessary hands-on experience.
Also, check out our YouTube video on the Difference Between Java And JavaScript to gain more insight.