Click to See Complete Forum and Search --> : Javascript , Java, Java 2 ?


Crunch
01-19-2001, 04:02 PM
While browsing in the programing section I saw books with Javascript, and Java 2 in the titles. What's the difference ? All I know is that they are mainly used in web pages.
(I think ?) http://www.sharkyforums.com/ubb/confused.gif

------------------
900 Tbird, KT7,256MB Crucial 133 Cas2, Leadtek GTS64 Pro, IBM 27G
I'm slow,but not accurate.

Sketch
01-19-2001, 04:37 PM
Javascript and Java are two completely different languages. Java is a full fledged programming language, that while it's use a lot on the web, was orginally developed to be a fully cross-platform capable language. It's actually a full fledged progrmming language that gets used for quite a large number of things, but because the general public's primary exposure to it is on the web, that's what it is associated with. Javascript, on the other hand, is a scripting language developed by Netscape specifically for web apps. It primarily is used for visual enhancements, such as graphics that "light up" when you scroll over them, and so on.

------------------
PIII 733@907 (Alpha PAL6035)
ASUS CUSL2
256MB PC133 RAM
Elsa Gladiac GeForce 2 GTS 32MB
SBLive! X-Gamer

[This message has been edited by Sketch (edited January 19, 2001).]

[This message has been edited by Sketch (edited January 19, 2001).]

jtshaw
01-20-2001, 02:21 PM
Java 2 is what Sun considers there newest version of the language (though the SDK I believe is called Java 1.3.something or other). It is basically just enhancements on Java itself. Sketch was completely on the ball with the differences between Javascript and Java.

To add something... you can use Java to built web applets as well as applications.

------------------
My box said "WindowsME/2000 or better" so I installed Linux.

Sketch
01-22-2001, 11:58 AM
Originally posted by jtshaw:
To add something... you can use Java to built web applets as well as applications.



Yea, I wasn't too clear on that. In the real world, it's actually used as much for stand alone apps as it is for web pages, if not more.

------------------
PIII 733@907 (Alpha PAL6035)
ASUS CUSL2
256MB PC133 RAM
Elsa Gladiac GeForce 2 GTS 32MB
SBLive! X-Gamer

Crunch
01-23-2001, 12:32 AM
Thanks guys, that helped. http://www.sharkyforums.com/ubb/biggrin.gif

------------------
900 Tbird, KT7,256MB Crucial 133 Cas2, Leadtek GTS64 Pro, IBM 27G
I'm slow,but not accurate.

Snoop Dogg
01-27-2001, 02:52 PM
Javascript is nothing but a branch of Java meant usually for the Internet programming like HTML but with a SHYT LOAD MORE features then HTML.

Java is the original Java 1.0, 1.1, 1.2 while Java 2 is nothing more then version 1.3 and future versions.

dighn
01-28-2001, 12:01 AM
Javascript is not a branch of Java
Javascript is not an enhanced version of HTML, it's used WITH html
And I believe Java 2 refers to JDK 1.2 and later(1.3.0 right now).

------------------
??..??!12?@#(?{}

[This message has been edited by dighn (edited January 28, 2001).]

Snoop Dogg
01-28-2001, 01:09 AM
I didn't mean it as branch my bad it was kinda hard to explain since I don't have the programmer terms and such and how to say it.

Sol
01-28-2001, 03:06 PM
Originally posted by Snoop Dogg:
I didn't mean it as branch my bad it was kinda hard to explain since I don't have the programmer terms and such and how to say it.

It's cool. I have a hard time at work understanding all the diferent java technologies. J2EE, EJB, etc... http://www.sharkyforums.com/ubb/wink.gif

------------------
"You know, I have one simple request, and that is to have sharks with frickin laser beams attached to their heads. Is that too much to ask?"

Snoop Dogg
01-28-2001, 09:21 PM
Yeah thanx alot man I am new at this programming and Java...I have a IDG Java 2 Bible and tryed going off my head but I was alittle wrong. http://www.sharkyforums.com/ubb/smile.gif

Your right also it is or can be confusing...I am 40+pages into the 1,000+page book and am getting confused on what Java 2 is and can do. All the little diff versions of java and stuff.

[This message has been edited by Snoop Dogg (edited January 28, 2001).]

Sol
01-29-2001, 01:08 AM
Originally posted by Snoop Dogg:
Yeah thanx alot man I am new at this programming and Java...I have a IDG Java 2 Bible and tryed going off my head but I was alittle wrong. http://www.sharkyforums.com/ubb/smile.gif

Your right also it is or can be confusing...I am 40+pages into the 1,000+page book and am getting confused on what Java 2 is and can do. All the little diff versions of java and stuff.

[This message has been edited by Snoop Dogg (edited January 28, 2001).]

Just keep reading and you will eventually get it. http://www.sharkyforums.com/ubb/smile.gif



------------------
"You know, I have one simple request, and that is to have sharks with frickin laser beams attached to their heads. Is that too much to ask?"

Snoop Dogg
01-30-2001, 01:42 AM
Thanks man...BTW what can Java do like what *BIG* things can you make? Games?

Sketch
01-30-2001, 12:54 PM
Originally posted by Snoop Dogg:
Thanks man...BTW what can Java do like what *BIG* things can you make? Games?

You could, but the low efficiency of Java makes it of limited usefulness for things like games. Java is great for anything that needs to be cross platform compatible, but for which speed is a secondary concern.

------------------
OC Knight

PIII 733@929
Alpha PAL6035 & Delta 30CFM w/ Arctic Silver
ASUS CUSL2
256MB PC133 RAM
Elsa Gladiac GeForce 2 GTS 32MB 210/385
SBLive! X-Gamer

dark_man
01-30-2001, 01:59 PM
This semester I have an operating systems course that uses java program in a unix environment. Our first program is writing a shell with java. But I thought unix and windows were both written in C.

jtshaw
01-30-2001, 02:35 PM
Originally posted by dark_man:
This semester I have an operating systems course that uses java program in a unix environment. Our first program is writing a shell with java. But I thought unix and windows were both written in C.

Unix was definitly written in C. What I hear is that C and C++ were the languages behind most of Windows. I am not sure why you would want to write a shell in Java over C but professors often have there own hidden reasons for things. All I know is I took a class that required the writting of a shell kind of like KSH (minus a few features:P) but it was required to be in C.

Truth is I guess it doens't much matter though wouldn't you have to be running the JavaVM in order to run your Java shell?

------------------
My box said "WindowsME/2000 or better" so I installed Linux.

dark_man
01-30-2001, 04:52 PM
Originally posted by jtshaw:
Unix was definitly written in C. What I hear is that C and C++ were the languages behind most of Windows. I am not sure why you would want to write a shell in Java over C but professors often have there own hidden reasons for things. All I know is I took a class that required the writting of a shell kind of like KSH (minus a few features:P) but it was required to be in C.

Truth is I guess it doens't much matter though wouldn't you have to be running the JavaVM in order to run your Java shell?

The systems actually have both unix(using tshell)and solaris on them. So now I have to start working with java and pico editor but I guess I should be happy since in another class I have to use lex and yacc(then prolog,lisp,and ada).

jtshaw
01-30-2001, 07:25 PM
Lex and Yacc.... I used Lex and Yacc when I did the shell. If I can promise anything it is that I will NEVER use either lex or yacc for anything again http://www.sharkyforums.com/ubb/smile.gif

------------------
My box said "WindowsME/2000 or better" so I installed Linux.

alienrash
01-30-2001, 07:41 PM
Lex, Yacc: My favorite http://www.sharkyforums.com/ubb/smile.gif

------------------
Blueskies Blackdeath

dark_man
01-30-2001, 08:31 PM
Originally posted by alienrash:
Lex, Yacc: My favorite http://www.sharkyforums.com/ubb/smile.gif


Any ideas where to get some info on using the two? I would by a book but I only need it for part of the class.

JFCL
01-31-2001, 06:08 AM
Any ideas where to get some info on using the two? I would by a book but I only need it for part of the class.


"A Compact Guide to Yacc & Lex":
http://epaperpress.com/y_man.html

bison and flex are yacc and lex semi-clones:
http://www.gnu.org/manual/manual.html
there are probably more docs floating around various other fsf/gnu sites as well.

Good luck (and my condolences :)

[This message has been edited by JFCL (edited January 31, 2001).]

[This message has been edited by JFCL (edited January 31, 2001).]

Sketch
01-31-2001, 01:49 PM
Originally posted by alienrash:
Lex, Yacc: My favorite http://www.sharkyforums.com/ubb/smile.gif



*Sketch finds himself a nice corner, rolls into the fetal position, and makes incomprehensible, gurgling sounds*

------------------
Knight of the OC Crusaders

PIII 733@951
Alpha PAL6035 & Delta 30CFM w/ Arctic Silver
ASUS CUSL2
256MB PC133 RAM
Elsa Gladiac GeForce 2 GTS 32MB 210/385
SBLive! X-Gamer

[This message has been edited by Sketch (edited January 31, 2001).]

dark_man
01-31-2001, 05:15 PM
Originally posted by JFCL:
Any ideas where to get some info on using the two? I would by a book but I only need it for part of the class.


"A Compact Guide to Yacc & Lex":
http://epaperpress.com/y_man.html

bison and flex are yacc and lex semi-clones:
http://www.gnu.org/manual/manual.html
there are probably more docs floating around various other fsf/gnu sites as well.

Good luck (and my condolences http://www.sharkyforums.com/ubb/smile.gif

[This message has been edited by JFCL (edited January 31, 2001).]

[This message has been edited by JFCL (edited January 31, 2001).]

Thanks for the sites. I can't wait until we are done with lex and yacc but then we move onto Prolog.