Java and JavaScript are two completely different languages, not all of which have a Java like
Java, the full name should be Java Applet, is embedded in the Web page, but also has its own separate running window applet.
Java applets are pre-compiled, and an Applet file (. Class) opens for reading with Notepad, which is simply not understandable. Java applets are powerful, with access to protocols such as HTTP, FTP, and even viruses on your computer (precedent already).
JavaScript is less capable. JavaScript is a "script" that directly writes code to an HTML document, compiles and executes it when the browser reads it, so you can view the JavaScript source code by viewing the HTML source file. JavaScript does not have a separate running window, and the browser's current window is its running window.
JSP is the first acronym of Java SERVER page, as its name implies, is the server page of Java, its dynamic syntax is completely Java specification. JSP is the same server-side language as asp,php, mainly used to make the website backstage technology (but now generally do not use, since 2014 basically started using template engine technology such as velocity, etc.).
In general, Java is the programming language used in the background, JSP and JavaScript are used for foreground page programming
The difference between Java, JSP and JavaScript