Both the language are completely different languages, both in concept as well as in design.
Java is an OOP programming language while Java Script is an OOP scripting language.
- JAVAJava is used for creating cross platform programs. Java enables Web page designers to include small applications (called applets) in Web pages. Specially it’s used for making android apps and more generally apps for android devices like mobilephones , TV , smart watches etc It’s also used in your IoT powered devices . It,s also used for making web applications.Java is arguably the most powerful platform for server-side Web development today. From small Java programs (Servlets) that handle Web page requests to JavaServer Pages (JSPs) that combine HTML with custom tags and Java code, and even up to Enterprise JavaBeans (EJBs), software components with sophisticated abilities to carry information seamlessly across servers and networks to accomodate distributed applications, Java is truly an amazing language technology. Java is renouned for its Write One, Run Anywhere (WORA) philosophy. <<Java takes a lot of work to learn. Don’t even start if you’re not serious about learning object oriented programming>>
the best reference website to learn Java is
for more official info about JAVA click here
It allows you to make things happen in the user’s browser without sending messages back and forth to the server. Some other reasons are ->