Need help
Java and JavaScript have some similarities but more differences than their names may reveal. JavaScript is a scripting language and HTML-page oriented (the script is embedded in the HTML source), while Java is a complete programming language that can be used in and outside the Web world (standalone programs may be developed using Java, for example).
On one hand, Java applets are only referenced inside the HTML source of a page and executed inside the browser's window. JavaScript scripts are actually embedded in the HTML source and are also executed by the browser on the document's window.
Java programs consist of classes and respective methods, and their objects are declared and safely typed. JavaScript is a smaller language with an easier syntax that has some data types already built-in.
Another difference comes from the execution strategy. JavaScript programs are interpreted while Java applets must be precompiled before execution (a pseudo-interpretation, in fact). Object references in JavaScript are checked at runtime while in Java they exist at compile time.
Both languages pretend to be secure, and Web programs developed with them cannot (or should not), in particular, write to the hard disk. Java also has security features concerning network functioning. Java seems to comply with security issues better than JavaScript.
>.>
On one hand, Java applets are only referenced inside the HTML source of a page and executed inside the browser's window. JavaScript scripts are actually embedded in the HTML source and are also executed by the browser on the document's window.
Java programs consist of classes and respective methods, and their objects are declared and safely typed. JavaScript is a smaller language with an easier syntax that has some data types already built-in.
Another difference comes from the execution strategy. JavaScript programs are interpreted while Java applets must be precompiled before execution (a pseudo-interpretation, in fact). Object references in JavaScript are checked at runtime while in Java they exist at compile time.
Both languages pretend to be secure, and Web programs developed with them cannot (or should not), in particular, write to the hard disk. Java also has security features concerning network functioning. Java seems to comply with security issues better than JavaScript.
>.>
See through the master
Become the master
Become the master
-
- Posts: 147
- Joined: Tue Jul 03, 2007 2:00 am
-
- Posts: 205
- Joined: Sat Nov 29, 2008 3:19 am
Well J# is based on .Net Framework and it is a compiled language. JavaScript is a web-based language to manipulate the effect on the website.athlete501 wrote:s3th you didnt explain the programming language correctly
the J#(Java) programming language..like C++ or VB, it is used to make standalone programs like he said however it has nothing related to do with javascript or Sun (Sun Microsystems) Java...it's just coincedence that they are the same name
The Assistant of the Clan. The White Orders.
-
- Posts: 147
- Joined: Tue Jul 03, 2007 2:00 am
just a more technical definitionBerryTheWest wrote:Well J# is based on .Net Framework and it is a compiled language. JavaScript is a web-based language to manipulate the effect on the website.athlete501 wrote:s3th you didnt explain the programming language correctly
the J#(Java) programming language..like C++ or VB, it is used to make standalone programs like he said however it has nothing related to do with javascript or Sun (Sun Microsystems) Java...it's just coincedence that they are the same name
but then their is Java Applets as in Sun Microsystem...those give you web interface
-
- Posts: 205
- Joined: Sat Nov 29, 2008 3:19 am
Of course and it is also outdated to our today standard. I'd say Flash or Silverlight is becoming a primary usage in website interface.athlete501 wrote:just a more technical definitionBerryTheWest wrote:Well J# is based on .Net Framework and it is a compiled language. JavaScript is a web-based language to manipulate the effect on the website.athlete501 wrote:s3th you didnt explain the programming language correctly
the J#(Java) programming language..like C++ or VB, it is used to make standalone programs like he said however it has nothing related to do with javascript or Sun (Sun Microsystems) Java...it's just coincedence that they are the same name
but then their is Java Applets as in Sun Microsystem...those give you web interface
The Assistant of the Clan. The White Orders.