Nope they are different. Java is an object oriented programming language.
Whereas javascript is text written into, say, HTML. Java needs to be compiled
(applet), while javascript does not. Here's a site that explains the differences
in greater detail:
Javascript is a web-only scripting language and is used alot in web coding. It
can do simple things like switching images and reading cookies, however you can
do some complex stuf with it.
However Java is a full programming languange. In the sense of web use, it can be
used as a n applet which is basically likea program that runs inside the browser
window. However the user will need JRE on their computer for it to work,
Javascript should work on all modern browsers.
Quote by TSPhoenixJavascript is a
web-only scripting language and is used alot in web coding. It can do simple
things like switching images and reading cookies, however you can do some
complex stuf with it.
However Java is a full programming languange. In the sense of web use, it can be
used as a n applet which is basically likea program that runs inside the browser
window. However the user will need JRE on their computer for it to work,
Javascript should work on all modern browsers.
You could say Javascript is like a main programming language next to html for
Web Developement. =D
I cant help but make some corrections to these comments.
Javascript isn't web-only, but use outside a webpage environment is limited.
I've been told of some sort of network device (nothing to do with HTML) can be
programmed via Javascript, and you can make applications with Javascript and XUL
in a Gecko environment that do not need to use the net (I think there's a
Minesweeper extension for Firefox, for example).
No, I wouldn't say Javascript is a "main programming language" for web
development. All the server-side stuff is likely to be done in PHP, Perl,
Python, Tcl, Ruby, or some other scripting language. Javascript is normally used
just to add a little more client-side functionality to the HTML page.
A scripting language is a type of
programming language, therfor Javascript can also be classified as a programming
language.
As far as differences go, the syntax style between Java and Javascript is
similar, but that's it. Java is purely OO (object orientated), OO is optional in
JS. Also, all of the functions/methods in Java are not in Javascript, you use
different ones.
That is Java code (using objects that dont actually exist). The same code with
the new variable types replaced (from String and boolean to just
"var"), is also valid Javascript. They are similar in syntax style.
Quote by jaspI cant help but make some
corrections to these comments.
Javascript isn't web-only, but use outside a webpage environment is limited.
I've been told of some sort of network device (nothing to do with HTML) can be
programmed via Javascript, and you can make applications with Javascript and XUL
in a Gecko environment that do not need to use the net (I think there's a
Minesweeper extension for Firefox, for example).
No, I wouldn't say Javascript is a "main programming language" for web
development. All the server-side stuff is likely to be done in PHP, Perl,
Python, Tcl, Ruby, or some other scripting language. Javascript is normally used
just to add a little more client-side functionality to the HTML page.
A scripting language is a type of
programming language, therfor Javascript can also be classified as a programming
language.
Yeah you're right, JS isn't web-only in fact I've written some simple non-web
programs in JS. In fact much of Firefox is written using JavaScript to implement
functionality.
Also while JavaScript isn't any more important that PHP in terms of use and
flexibility, JavaScript is no doubt the most important and most used client-side
scripting language, most other scripts like PHP are all run on the web
server.
I really doube peopel actually use Java to code hacking applications, its stable
nature and slower runtime aren't the best features in such an application.
Javascript is a scripting language you can use in web pages as in some other
kind of application (for example Firefox skins are developed in js).
It respects (a lot) of ECMASCRIPT standards.
Java is a cross-platform programming language.
Cross platform means that you can develop application working on different
systems like Windows, McIntosh and Linux.
The're complitely different and their name are a false friend.
You can google the difference from a scipt language and a programming language.
Yup! What h5n1 says is correct. Java is a programming language just like C, C++, Pascal, Cobol and etc...
and was developed by SUN Microsystem. Java was originally created to reduce the
complexity and difficulty of C and C++ programming languages. You can right a
system with that language, while JaveScript (Developed by NetScape) is merely a
web developmentt language, made to look like Java, but with much easier and less
complex structure.
Quote by ealpha-scorpioYup! What
h5n1 says is correct. Java is a programming
language just like C, C++, Pascal, Cobol and etc... and was developed by
SUN Microsystem. Java was originally created to reduce the complexity and
difficulty of C and C++ programming languages. You can right a
system with that language, while JaveScript (Developed by NetScape) is merely a
web developmentt language, made to look like Java, but with much easier and less
complex structure.
wow someone actuallt said js and java are the same thing . js
is for the client side of web applications and is limited to web applications.
java and develop ..... well anything from full programs to server side web
applications
I was wondering, are they both the same or are they different? If Java and Javascript are different, how so? I know, a dumb question ^^;
Its the same thing, Javascript is just the name for the code for Java.
Then there is java, the coffee xD
Nope they are different. Java is an object oriented programming language. Whereas javascript is text written into, say, HTML. Java needs to be compiled (applet), while javascript does not. Here's a site that explains the differences in greater detail:
http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
ah my bad then, at least someone knows what they are on about ^^;
Hehe, it's all good. Before I got involved with programming and site designing I thought the 2 were the same too. ^^v
Javascript is a web-only scripting language and is used alot in web coding. It can do simple things like switching images and reading cookies, however you can do some complex stuf with it.
However Java is a full programming languange. In the sense of web use, it can be used as a n applet which is basically likea program that runs inside the browser window. However the user will need JRE on their computer for it to work, Javascript should work on all modern browsers.
You could say Javascript is like a main programming language next to html for Web Developement. =D
Javascript isn't a programming language, it's a script.
I cant help but make some corrections to these comments.
Javascript isn't web-only, but use outside a webpage environment is limited. I've been told of some sort of network device (nothing to do with HTML) can be programmed via Javascript, and you can make applications with Javascript and XUL in a Gecko environment that do not need to use the net (I think there's a Minesweeper extension for Firefox, for example).
No, I wouldn't say Javascript is a "main programming language" for web development. All the server-side stuff is likely to be done in PHP, Perl, Python, Tcl, Ruby, or some other scripting language. Javascript is normally used just to add a little more client-side functionality to the HTML page.
A scripting language is a type of programming language, therfor Javascript can also be classified as a programming language.
As far as differences go, the syntax style between Java and Javascript is similar, but that's it. Java is purely OO (object orientated), OO is optional in JS. Also, all of the functions/methods in Java are not in Javascript, you use different ones.
Java is programming multi-platform language developed by SUN, JavaScript (original name was LiveScript) is scripting language from Netscape.
umm java has nothing to do with javascript..
java's good for hacking... javascript is just... commendable, flexible internet programng like quick basic... they're not related at all..
That is Java code (using objects that dont actually exist). The same code with the new variable types replaced (from String and boolean to just "var"), is also valid Javascript. They are similar in syntax style.
lol... indeed, java has nothing to do with javascript...
Java = OO programing language, developed by SUN.
JavaScript = client-side script language developed by Netscape (1st called Livescript).
Yeah you're right, JS isn't web-only in fact I've written some simple non-web programs in JS. In fact much of Firefox is written using JavaScript to implement functionality.
Also while JavaScript isn't any more important that PHP in terms of use and flexibility, JavaScript is no doubt the most important and most used client-side scripting language, most other scripts like PHP are all run on the web server.
I really doube peopel actually use Java to code hacking applications, its stable nature and slower runtime aren't the best features in such an application.
Javascript is a scripting language you can use in web pages as in some other kind of application (for example Firefox skins are developed in js).
It respects (a lot) of ECMASCRIPT standards.
Java is a cross-platform programming language.
Cross platform means that you can develop application working on different systems like Windows, McIntosh and Linux.
The're complitely different and their name are a false friend.
You can google the difference from a scipt language and a programming language.
java is like a programing software or sum sort...
javasript is a scripting language for applications or stuff...
me and u are no different...im not sure if this is rite...me too are confused :P
Yup! What h5n1 says is correct. Java is a programming language just like C, C++, Pascal, Cobol and etc... and was developed by SUN Microsystem. Java was originally created to reduce the complexity and difficulty of C and C++ programming languages. You can right a system with that language, while JaveScript (Developed by NetScape) is merely a web developmentt language, made to look like Java, but with much easier and less complex structure.
They both originate from C, not from eachother.
wow someone actuallt said js and java are the same thing
. js
is for the client side of web applications and is limited to web applications.
java and develop ..... well anything from full programs to server side web
applications