Closed Thread Icon

Topic awaiting preservation: Java VS. Javascript Pages that link to <a href="https://ozoneasylum.com/backlink?for=22328" title="Pages that link to Topic awaiting preservation: Java VS. Javascript" rel="nofollow" >Topic awaiting preservation: Java VS. Javascript\

 
Author Thread
Alexer
Obsessive-Compulsive (I) Inmate

From: Juneau, Alaska
Insane since: Jun 2004

posted posted 06-25-2004 22:46

I just started studying Javascript (norm said it'd be good for me, so I'm starting to doubt if should..), and my father has just started studying Java. Neither of us know very much about our respective studies quite yet, but we are both very curious about the differences/similarities.

One thing I know is that Java is object-oriented, and JavaScript is object-based. However, to my newbie brain that sounds the same.

With my limited experience, I would deduce that JavaScript is for dynamic webpages, while Java is for on-line applications(?).

code-headed intern

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-26-2004 00:24

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 06-26-2004 00:38

Java is a compiled language that is platform independent thanks to the java virtual machine which does it's compiling on demand for whatever platform the jvm is on. Java can be used to build desktop applications or serverside web applications, it can be embedded in webpages as applets, or..... Lots of possibilities with Java.

Javascript is an interpreted language, there are no binaries compiled for the programs written in Javascript so the OS must interpret the code, just like a shellscript. Javascript is used primarily in webpages and it allows you to do some really cool stuff clientside, taking the load off of your webserver.

As far as Object Oriented programming goes, you will find that object support in Javascript is very elementry when compared to the inheritance and public/private methods that are fundamental parts of java.

/*damn....INI posted while I was still typing. And his answer is much more complete and accurate than mine. The really embarrasing thing is I'm only one cubicle away. I'm so ashamed..... */

(Edited by norm on 06-26-2004 00:42)

Alexer
Nervous Wreck (II) Inmate

From: Juneau, Alaska
Insane since: Jun 2004

posted posted 06-26-2004 01:15

I think I see the differences. I have to admit that some of the information contradicts what my learning material says, but my learning material is meant to convert me into a Netscape junkie, so I'm not surprised. Thank you both for your info, even if norm's was a bit belated

code-headed intern

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-26-2004 03:08

even though they share a bit in their name, the two languages are different and intended to be that way. Though there are server side Jscript (Microsoft version of javascript) apps Javasript is meant to be run in a browser while Java is meant to be run... well everywhere

I like Javascript as an entry language, it will give you a pretty easy way to start understanding basic programming concepts. Java is a bit harder to learn but much much more uesful.

Just a note. javasript was orginally called livescript but when it was being devloped Java was the next big thing and was also being developed by Sun & netscape so they changed the name.



.:[ Never resist a perfect moment ]:.

« BackwardsOnwards »

Show Forum Drop Down Menu