[Myth] JavaScript and Java Language are the same

Last update on August 16, 2009 01:13 AM by fahd_zboot
Published by netty5

JavaScript and Java Language are the same




Myth


JavaScript and Java are thought to be same language or that JavaScript is believed to be some kind of lighter version of Java.

Reality


Java and JavaScript are two distinct programming languages, many people tend to be confused when using both terms due to the similarity in the names.

JavaScript is used in the creation of dynamic web pages. It is client side language and is limited to run on a client browser.

JavaScript features
  • Interpreted by client, but it is not compiled .
  • Object-based. Code uses built-in, extensible objects, but no classes or inheritance.
  • Code integrated and embedded in HTML.
  • Variable data types not declared . .
  • Cannot automatically write to hard disk.


Java is a high level object oriented programming language used for software development or server side applications.

Java feautures
  • It is compiled on server before being run on client.
  • Object-oriented. Applets consist of object classes with inheritance.
  • Applets are accessed from HTML pages,but are distinct from these pages
  • Variable data types must be declared




The main difference between these two languages, is that JavaScript must be used within the web browser (it is embedded within the HTML code) and that Java applets are stand alone functions that can work outside your web browser.
Best answers for « JavaScript and Java Language are the same » in :
Javascript - split () Show [Javascript] The split () function The split () function allows you to split a string and return the results in a table, using a string defined as a separator. In the example below, the split () can cut the date according to the...
[Java software]Dictionary for your mobile phone Show [Java software]Dictionary for your mobile phone Features: Download and installation JLearnItME is a free application for mobile phone supporting over 15 languages. Note that it is compatible with all mobile phones...
Javascript - trim() function Show[Javascript] The trim() function The trim () function is native PHP (and other languages) and is used to remove the spaces at the beginning and end of the string. There is no such function in Javascript, but you can use the...
Installing Java under Ubuntu ShowInstalling Java under Ubuntu Issue Solution Issue By default, Firefox does not come with Java. Solution Open a terminal (Application Menu/ Accessories/ Terminal) and type in: sudo aptitude install sun-java6-jre sun-java6...
[Javascript] Last modification made on a web page Show[Javascript] Last modification made on a web page Monitoring changes made your website: Using JavaScript, it is possible to display the last modification made on a the web page through the lastmodified property of the object...
Programming languages ShowProgramming language A "programming language" is a language designed to describe a set of consecutive actions to be executed by a computer. A programming language is therefore a practical way for us (humans) to give instructions to a...
Characteristics of programming languages ShowThere are many programming languages, each corresponding to specific needs (formula calculus, character string processing, real-time, etc.) with each having specific characteristics and functionalities. Therefore, the choice of programming language...