Java and Javascript ARE TWO DIFFERENT LANGUAGES! I don’t know why people post Javascript-related threads in this section. Java is a general-purpose computer programming language designed to produce programs that will run on any computer system. Javascript is an object-oriented computer programming language commonly used to create interactive effects within web browsers. Javascript started out as Mocha, then became LiveScript and then became Javascript when Netscape (developers of Javascript) and Sun Microsystems (developers of Java) got together. But it actually has nothing to do with Java or not much to do with it. So please, next time when you post anything related to Javascript, post it on the Web Development section. Thank you.