What is the difference between JavaScript and Java?
Answer:
Almost everything!
Many people get confused between JavaScript and Java because of the similarity in their names, and often people say one when they mean the other.
JavaScript is a scripting language that runs on the web browsers. Java is a programming language for building desktop applications, server-side web applications, mobile applications (including games), etc.
To make things a little bit more confusing, Java Applet, on the other hand, is a small application written in Java that, like JavaScript, also runs on the web browsers. However, Java Applets are not that popular anymore now and its alternatives like Flash and AJAX (Asynchronous JavaScript and XML) are much more commonly found nowadays.
