Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2003, 07:30 PM
crackerweb crackerweb is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 786 crackerweb User rank is Private First Class (20 - 50 Reputation Level)crackerweb User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 18 h 16 m
Reputation Power: 6
Question about JAVA

Is Java script and Java code different, for example is 'System.out.println("Hello") ' a java script or a java code? thnks in advance!

Reply With Quote
  #2  
Old June 24th, 2003, 04:33 AM
IBM IBM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 173 IBM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
the code you used is java.

And yes, java and javascript are very different languages..with some similarities.

Sun systems created java, while Netscape created javascript.

Reply With Quote
  #3  
Old June 24th, 2003, 05:32 PM
nao's Avatar
nao nao is offline
junior vice president
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Springfield
Posts: 251 nao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
ref.

Here's a pretty definitive (hehe... pun INTENDED!) explaination to your question:

Quote:
JavaScript is a new technology that is rapidly changing. It is not yet well understood and is the subject of
a fair bit of misinformation and confusion. Before we proceed any further with our exploration of
JavaScript, it is important to debunk some common myths about the language.

One of the most common misconceptions about JavaScript is that it is a "simplified version" of Java, the
programming language from Sun Microsystems. Other than an incomplete syntactic resemblance and the
fact that both Java and JavaScript can deliver "executable content" over networks, the two languages are
entirely unrelated. The similarity of names is purely a marketing ploy (the language was originally called
LiveScript, and its name was changed to JavaScript at the last minute).
JavaScript and Java do, however, make a good team. The two languages have disjoint sets of capabilities.
JavaScript can control browser behavior and content but cannot draw graphics or perform networking.
Java has no control over the browser as a whole, but can do graphics, networking, and multithreading. In
Navigator version 3.0, JavaScript can communicate with the Java interpreter built into the browser and
can work with and control any Java applets in a web page. This means that in this version of Navigator,
JavaScript really can "script" Java. This new feature is called LiveConnect, and it also allows Java code
to invoke JavaScript commands. Chapter 19, LiveConnect: JavaScript and Java describes LiveConnect
in detail.

JavaScript is touted as a "scripting language" instead of a "programming language," the implication being
that scripting languages are simpler, that they are programming languages for nonprogrammers. Indeed,
JavaScript appears at first glance to be a fairly simple language, perhaps of the same complexity as
BASIC. Further experience with JavaScript, however, reveals complexities that are not readily apparent.
For example, the use of objects as arguments to functions requires a careful understanding of the
difference between passing arguments "by value" and passing arguments "by reference." There are also a
number of tricky details to understand about converting data values from one type to another in
JavaScript. Even the seemingly simple document.write() method has nonintuitive aspects.

Quoted from O'Reilly, Javascript the Definitive Guide



Nao

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > about JAVA


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway