vietonline
Aug 2 2006, 02:10 AM
| | I think most of you always confuse about java and javascript .So I make this topic to talk about it.
Javascript and Java ,they have the same first four letter.
Java and Javascript is the two language is very popular in the web world.Java is the general-purpose programming language that you can create an application or an applet.Javascript is a script language that looks sort of like java;with it you can do various nifty things in web pages.They are independent languages ,used for different purposes.If you are interesting in creating a website you should learn how to write and use javascript.
Hope this will make you make sense how is different about java and javascript. |
Comment/Reply (w/o sign-up)
FirefoxRocks
Aug 2 2006, 03:25 AM
I don't get confused about Java and JavaScript at all actually.  Similarities: They both use The Web and The Internet. Both of them are used to perform a specific function. Diffferences: Java is a programming language (like C++ or Perl, I think) JavaScript is a scripting language (like VBScript) Java is much harder to integrate into web pages using valid XHTML. JavaScript is a little hard to learn at first, but easy once you get the hang of it. Java is very hard to learn, and is best left of programmers.  JavaScript usually performs functions inside webpages. Java can do a lot of other stuff as well. You can find lessons on how to compose JavaScript at http://w3schools.com. People use JavaScript for cool effects in webpages. :-}Both are used for different purposes. If you want to learn easy, cool stuff, learn JavaScript! 
Comment/Reply (w/o sign-up)
rama3i
Aug 2 2006, 12:14 PM
Java can be integrated into web pages using javascript (have you ever use java web framework like struts, spring or JSF?) On a web programming Javascript is a client side script means that your script would seen by client. But not Java. QUOTE(FirefoxRocks @ Aug 2 2006, 10:25 AM)  I don't get confused about Java and JavaScript at all actually.  Similarities: They both use The Web and The Internet. Both of them are used to perform a specific function. Diffferences: Java is a programming language (like C++ or Perl, I think) JavaScript is a scripting language (like VBScript) Java is much harder to integrate into web pages using valid XHTML. JavaScript is a little hard to learn at first, but easy once you get the hang of it. Java is very hard to learn, and is best left of programmers.  JavaScript usually performs functions inside webpages. Java can do a lot of other stuff as well. You can find lessons on how to compose JavaScript at http://w3schools.com. People use JavaScript for cool effects in webpages. :-}Both are used for different purposes. If you want to learn easy, cool stuff, learn JavaScript! 
Comment/Reply (w/o sign-up)
hype
Aug 2 2006, 02:25 PM
well, Java and JavaScript syntax are similar, but not the same... Once you understand how either one of them works then you will roughly know how to code the other, but the main difference is that they are different types of language, and they are used in different ways... Basically, if you are building a website its best that you use JavaScript wherease when creating normal application Java suits it better...
Comment/Reply (w/o sign-up)
peroim
Dec 20 2006, 06:57 PM
Before somebody gets confused: Java and JavaScript have NOTHING to do with eachother. JavaScript just came out while Java was very popular, so they just wanted to be popular too. Java is made by Sun, and JavaScript is created by Brendan Eich of the Netscape Communications Corporation. There are some similarities in code, but you should really don't mix them up. Java is NOT JavaScript.
Comment/Reply (w/o sign-up)
.hack//GU
Oct 6 2007, 08:33 AM
QUOTE(peroim @ Dec 20 2006, 06:57 PM)  Before somebody gets confused: Java and JavaScript have NOTHING to do with eachother. JavaScript just came out while Java was very popular, so they just wanted to be popular too. Java is made by Sun, and JavaScript is created by Brendan Eich of the Netscape Communications Corporation. There are some similarities in code, but you should really don't mix them up. Java is NOT JavaScript. From what I know, the first version of Javascript is called LiveScript. By the following time, they named LiveScript 2.0 to JavaScript. And so on till now.
Comment/Reply (w/o sign-up)
minimcmonkey
Nov 4 2008, 04:44 PM
The main similarity is the syntax, that is why they share a name - javascript's syntax is based on java's Many people get confused about the two, thinking they are the same. THIS IS NOT THE CASE. Java is actually quite similar to C++
Comment/Reply (w/o sign-up)
asdftheking
Nov 15 2008, 06:21 AM
I can't see why javascript is included in the same category as Java. To make matters worse, it is written "Java Script." Is someone trying to mess with us here? Javascript's origins are not found at all in Java and its uses and applications are entirely different. Above all else, a compiled language and an interpeted language do not belong in the same category! Shame on the person who set up this forum the way it is...
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : What39s Relationship Javascript Java- Javascript Slideshow Tutorial
- How to make a slideshow in JavaScript (14)
JavaScript Slideshow Tutorial I'm going to show you how to make a impressive JavaScript
slideshow. First, you're probably asking: why would I want to make a slideshow in JavaScript?
There are a number of reasons. First, you don't have to build a new HTML page for each picture.
Secondly, the page will load much faster because the of the compactness of the page. Ok let's
get started with this example. First we'll add a tag in the of our HTML document. In that
script tag we will build the following: CODE first = 1; last = 4; ...
Which Is Good Java Or Dot Net
- which is good (13)
Hi, I want to know which is going to be a success in future. I've asked this question to
many but all are giving my vague answers. I'm asking this question because i'm going to join
a company where i can choose either dot net or java. Which one should i choose. Wax...
How To Create Java Button Or Frame
- to be customized (17)
hi to all!!!! just like to ask if it would be possible if i could make a custom button or frame in
java. i got tired of using the build infeatures in java. i would like to create my own dessign of
button or frame.. can it be possible!!! /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> thank!!!! /laugh.gif' border='0' style='vertical-align:middle'
alt='laugh.gif' /> New Help In! is NOT a descriptive topic title. Next time you decide not to
follow the posting rules, you will be issued a week long ban. ...
How To Insert Code With Javascript
- How to insert into a div an amount of code (11)
Hi, I have the next html page CODE function insertcode() { var code =" blablabal babala
babababab here comes header fadfafa anchor blalbababa " var myText =
document.createTextNode(code); document.getElementById("content").appendChild(myText); } -->
Insert Code This code insert the data as text. The html tags are not treated like markup.
I need to insert the code in a time. I mean i can not go tag per tag. (E.g.
document.createElement("p")... ) Is there any method to insert a pice of html code into a div and
keep it like code not like tex...
Java Web Start Jnlp And Mysql
- (3)
I think I have nearly managed to create a JNLP file and get my application running successfully.
Unfortunately I am having a problem connecting to a MySQL database when using Java Webstart, the
error that I get is shown below which incidently works fine when I run the app from eclipse. Has
anyone successfully managed to connect to MySQL using Java Web Start, if so could you please explain
why the regular doesn't work in more detail or perhaps post an example of simple connection java
file so I can edit it so it works with what I have already developed. Thanks in ad...
Javascript Window.open
- Plz help me ,, thanks (5)
When I try to run the following code in Internet Explorer I get an "Invalid argument" error but it
works fine on Firefox CODE window.open("users/ve_edit.php","edit
av","toolbar=no,location=no,directories=no,status=no,sc
rollbars=no,resizable=no,copyhistory=no,width=600, height=400"); plz help me /blink.gif'
border='0' style='vertical-align:middle' alt='blink.gif' /> ...
Javascript Close Window
- Javascript close window (19)
Hi does anyone have a code to close the browser window. This code needs to be used to close an
actual full sized window, not a pop-up window....
How To Implement Single Instance Application On Java
- (5)
See the next few lines containing Java Code: CODE 1. // imports 2. import
sun.management.ConnectorAddressLink; 3. import sun.jvmstat.monitor.HostIdentifier; 4.
import sun.jvmstat.monitor.Monitor; 5. import sun.jvmstat.monitor.MonitoredHost; 6. import
sun.jvmstat.monitor.MonitoredVm; 7. import sun.jvmstat.monitor.MonitoredVmUtil; 8. import
sun.jvmstat.monitor.MonitorException; 9. import sun.jvmstat.monitor.VmIdentifier; 10.
11. public static void main(String args ) { 12. /* The method ManagementFactory.getRun...
Adding Rows & Columns In Html Table Using Javascript
- (4)
I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE
Quantity
unit(s)
...
How Can I Resize The Web Browser?
- using javascript (5)
how can i resize the window with javascript, and how to center an element in the browser window?
thanks a lot!!! /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' />
Corrected title spelling. This is more appropriate in Programming section. Please, please make sure
that you post in the right section. ...
Java Script To Hide The Url In Address Bar
- Does any one know about this ? (8)
Hello friends , just now i came accross a particular type of script which is capable of masking the
URL which is seen in the Address bar of the webpage , that is by implementing the particular Java
Script when the user visits a page eg. www.mysite.com , then it is possible for the admin of
www.mysite.com to mask this site and display some other website in the viewers address bar. I came
to know that such a script can be written using Java Scripts , Can any one get me the Script ??...
Java Basic Program Guidance
- (7)
aving some problems taking in the Java at Uni, Was wondering if anyone could shine some light on it
for me. My task is to write a program that will ask you to enter 2 words. the program will then
print out both words on one line. However the words will be seperated by dots that will make the
total length of the line 40. so if your first word was turtle and the second was abc, the output
would be turtle...............................abc The program should check for certain conditions:
1. a word can not be longer than 37 characters; 2. there must always be atlest 2 do...
Java editor
- (75)
In your opinion what's the best java editor/compiler? i use jcreator le and it works nicely......
Is It Possible To Make A Splash Screen In Java?
- (6)
(A splash screen is an image that pops up before you run a program, sometimes it tells you what
portion of the program is being loaded. One example that immediately comes to mind is Ad-Aware,
which you should probably get if you don't have it.) Is there anything that could do this in
Java? I thought about having just a JFrame with the top bar and edges hidden, but I found nothing in
the API that suggests that that's possible....
Java Script Sites
- (6)
this is the best websites for javascript and other javascript.internet.com javascriptkit.com
webdeveloper.earthweb.com/webjs www.javascript.com www.dynamicdrive.com/
www.webdeveloper.com/javascript www.javascriptworld.com/scripts www.java-scripts.net
www.hotscripts.com www.totalscripts.com www.123webmaster.com www.needscripts.com www.reallybig.com
www.a1javascripts.com javascript.programmershelp.co.uk
developer.netscape.com/tech/javascript/resources.html
www.mountaindragon.com/javascript/resources.htm i'll make like this in cgi and php if u love
it???so....... ...
Learning Java
- (11)
Does anyone knows a good tutorial or book to learn Java?. I need to learn it quickly for a course in
the Uni. I have background in other programming languages such as C/C++ so i hope that helps. Thanks
in advance for your feedback...
Java Mobile Applications
- What you wanna have on your phone ? (9)
I'm trying to do a Java mobile J2me application... But I don't know what to do... Any
suggestions....? Maybe you guys can say what you would like to have on your mobile phone... ...
Java Is Not Javascript; Javascript Is Not Java
- (2)
Java, developed under the Sun Microsystems brand, is a full-fledged object-oriented programming
language. It can be used to create standalone applications and a special type of mini application,
called an applet. Applets are downloaded as separate files to your browser alongside an HTML
document, and provide an infinite variety of added functionality to the Web site you are visiting.
The displayed results of applets can appear to be embedded in an HTML page (e.g., the scrolling
banner message that is so common on Java-enhanced sites), but the Java code arrives as a separ...
Javascript resources?
- ie, a book. (10)
Hi, I'm trying to learn Javascript. The thing is, I don't have any reference material
around, so I'm gonna need to buy a book or something. Are there any which you would recommend? I
looked on some websites but there are literally hundreds of books of this kind. /blink.gif"
style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> (in answer to the
below, sorry sauron, didnt see that one)...
Free online java compiler =)
- no need to download the sun java SDK =) (6)
Hey everyone, I found a site with a free online java compiler where you choose a source .java file
from your computer and click on compile on the webpage and you get instant .class files!
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />.... heres the
link: www.innovation.ch - its somewhere on their website /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" /> Hope this helps in some way /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />......
Learning Javascript.
- -->What I know and a question<-- (7)
How hard is it to fully learn javascript? People say it is easy, however, it looks pretty
complicated! What do I know, you ask? I know how to make a button (that I describe in another
post) so that when you click it, it generates something at random. I have the script for it here:
var quotes = ; function getQuote() { var qs = document.getElementById("quote"); var quote =
quotes quotes ; alert(quote); } Describe button here. . . . . . Original script
copyright by ROADDHOGG...
Java Helpdesk
- All your queries regarding Java Programming goes here. (10)
Hellow friends, I am creating this thread for all queries and suggestions related to java coding. If
you face any problem, post it here, and others who have a solution can post the reply here. Hope it
helps the users....
Java Or C++
- (19)
Many having tell me to make my MMORPG in java leads me to agree, But I'm not sure truly is it
not yet easier, but yet the outcome of programming an MMORPG in java will make it fail or succeed
more then one in C+= I've learned a lot of variables in javascript, and I don't think that
java would be too bad either. My true question is, is those who use these languages, which seems
to give better outcome, and which seems to be more in ease. Regards -PCessna...
Need Help With Javascript Drag And Drop Script
- Having trouble with javascript drag and drop script. (3)
hi, i have been trying to create a drag and drop menu for my new website, so that the navigation
menu can be moved around the site. This is the code i have: CODE Test run - Right click
menu function coordinates(event) { if (event.button==2) { var x=event.x; var y=event.y; }
document.getElementById("element").style.left=x; document.getElementById("element").style.top=y;
document.getElementById("element").style.visibility="visible"; var oldx=x; var oldy=y;
window.onmouseup=end(); window.onmousemove=coordinates(event); } function end() { } #el...
Learning Java
- By The Book (5)
I travel alot so I get a chance to catch up on my reading. I bought a book today about javascripts.
I hope this will help me in creating my site which is currently being worked on. I want my site to
look professional and effective. I am hoping that this will help in creating this. Next I plan on
learning PHP, but since php is harder I will learn this first. I am a fast reader and I hope that I
can learn this fast since having a site down for a long time looks bad on the owner. One reason I
want to learn Javascript is to protect my site. I want to add a username and pa...
Best Java Framework For J2ee?
- Your Opinion About The Best Java Framework (11)
What is the best framework to make enterprise application using Java (J2EE)? Currently I am
learning Spring and it is quite good eventhough it is very complicated in my opinion. Maybe someone
can share which framework that you use What are its advantages and disadvantages? I seek a J2EE
framework that supports JMS and offer quick development process....
Java Iterator Help
- I need help with a method using iterator (3)
/** * Remove from the club's collection all members who * joined in the given month,
and return them stored * in a sparate collection object. * @param month The month of the
membership. * @param year The year of the membership. * @return The number of members.
*/ public ArrayList purge(int month, int year) { if(month >= 1 && month
{ Iterator it = members.iterator(); ArrayList purged;
purged = new ArrayList(); int counter = 0; wh...
Javascript Game
- Free online dice game called "Greedy" (6)
File Upload Script In Java
- File Upload Script in JAVA (5)
Hi, I am developing my personal website in JSP. I need a file upload script written in JAVA. I got a
script that is Upload Bean from javazoom.com but the problem is its working fine on Windows
Operating SYstem but not working on LINUX server. When i pass LINUX path (like
/home/usr/public_html) to bean it gives me error Check UploadBean properties in your JSP. I
think this bean aspecting a windows path. Can anyone provide me JSP Smart Upload script or any
other file upload bean in JAVA. For your information Smart Upload website has been closed. My
email id is ...
Document.write & Noscript Questions (javascript)
- (2)
I am trying to use javascript to include a stylesheet depending on the user's resolution. The
HTML CODE " /> id) { initEditor(); } ?> if
(screen.width>=1050) { document.write(' '); } I'm running into two
problems. 1) The script doesn't seem to be writing anything. Fixed 2) The tags cause all
sorts of validation errors. From what I've read it seems as though the tag is not allowed
within the section -- is this correct? Could the same thing be accomplished just putting the
default style...
Looking for whats, relationship, javascript, java
|
Searching Video's for whats, relationship, javascript, java
See Also,
|
advertisement
|
|