I am confused with Java Script and Java. Example: when I check FireFox browser option function one shows Java Script on and Java on. Question : Java Script and Java are they not the same? Please if you can post a simple example. Thanks/Regards
Javascript and Java are both different programming languages. Javascript is scripting language used to check things entered in HTML form, change color according to user preferences, etc. Java is an object oriented programming language. Java programs can run anywhere - on your PC, mobile or even your refrigerator!
Technically Java runs anywhere on a platform that a Java Virtual Machine has been written for (which is a lot of platforms). Course from wikipedia you have: "JavaScript is a dialect of the ECMAScript standard and is characterized as a dynamic, weakly typed, prototype-based language with first-class functions. JavaScript was influenced by many languages and was designed to look like Java, but to be easier for non-programmers to work with." so loosly put it was a web-based scripting language designed to run on browser and was loosely tailored after the Java syntax. Think of Java as similar to a Flash Applet, Silverlight Plugin, or ActiveX in the sense of how it's used on the web. But off the web it can be used as a desktop application. Course Java is hardly used on the web anymore as it has gotten quite the reputation of being very slow compared to Flash and Silverlight.