Nov 21, 2009

Java Is Not Javascript; Javascript Is Not Java

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Java Is Not Javascript; Javascript Is Not Java

kvarnerexpress
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 separate file.

JavaScript, developed by Netscape, is a smaller language that does not create applets or standalone applications. In its most common form today, JavaScript resides inside HTML documents, and can provide levels of interactivity far beyond typically flat HTML pages -- without the need for server-based CGI (Common Gateway Interface) programs.

Some server software, such as Netscape's SuiteSpot, lets web application developers write CGI programs in a server-side version of JavaScript. Both client-side and server-side JavaScript share the same core JavaScript language, but each side deals with different kinds of objects. Client-side objects are predominantly the components of an HTML web page (e.g., forms, text boxes, buttons). Server-side objects are those that facilitate the handling of requests that come from clients, as well as connectivity to databases

It is important to understand that a Java-enabled browser is not automatically a JavaScript-enabled browser: the two technologies require entirely separate interpreters (licensed from separate companies) to handle the languages. It is unlikely, however, that future browsers will incorporate one but not the other (plus or minus implementation timetables on various platforms).

Starting with Netscape Navigator 3.0, HTML authors have been able to use JavaScript to link HTML form elements to Java applets (and plug-ins) or link Java applets to each other--LiveConnect™, Netscape calls this technology. Rather than competing with each other, Java and JavaScript are a powerful combination.

Much simpler and smaller than the Java vocabulary, JavaScript is within reach of authors who know HTML; writing full-fledged Java, on the other hand, benefits from experience with C and C++. Java and JavaScript share a number of vocabulary and syntax constructions, but the languages are intended for very different purposes.

All you need to program in JavaScript is a text editor and a JavaScript-enabled browser, such as Netscape Navigator 2.0 and later or Microsoft Internet Explorer 3 and later.

 

 

 


Comment/Reply (w/o sign-up)

Xedos
Not that im insulting you, but didn't we all know this. Its the basics that anyone teachs you before a tutorial. Its the first thing ive seen in any Javascript tutorial, don't know about Java ones though.

Comment/Reply (w/o sign-up)

k_nitin_r
Hi!

There really are a lot of people out there who still can't tell the difference, but I do agree with Xedos that most people here probably know (or ought to know) the difference - especially if they're here for the web hosting package.

In a recent thread in the Java & Javascript forum, I had a discussion about why Javascript shouldn't be bunched together with Java and all, going into the details of how they are very different and come from different language families.

Regards

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : java, javascript, javascript, java

  1. Javascript Game
    Free online dice game called "Greedy" (6)
  2. 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....
  3. 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 ??....
  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....
  5. 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....
  6. 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....
  7. 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....
  8. 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....
  9. 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.....
  10. What's The Relationship Between Javascript And Java
    are they the same or different (7)
    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 w....
  11. 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.....
  12. 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)                                                         
                 ....
  13. 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.....
  14. 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....
  15. 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.....
  16. 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....
  17. 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. ....
  18. 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. ....
  19. 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 ....
  20. 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... ....
  21. 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' /> ....
  22. 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....
  23. 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;   ....
  24. 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....
  25. 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....
  26. 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....
  27. 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" />.......
  28. 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....... ....
  29. 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)....
  30. Java editor
    (75)
    In your opinion what's the best java editor/compiler? i use jcreator le and it works nicely.......

    1. Looking for java, javascript, javascript, java
Similar
Javascript Game - Free online dice game called "Greedy"
Need Help With Javascript Drag And Drop Script - Having trouble with javascript drag and drop script.
Java Script To Hide The Url In Address Bar - Does any one know about this ?
Which Is Good Java Or Dot Net - which is good
How To Implement Single Instance Application On Java
Document.write & Noscript Questions (javascript)
Java Or C++
Java Iterator Help - I need help with a method using iterator
Best Java Framework For J2ee? - Your Opinion About The Best Java Framework
What's The Relationship Between Javascript And Java - are they the same or different
Java Helpdesk - All your queries regarding Java Programming goes here.
Adding Rows & Columns In Html Table Using Javascript
Is It Possible To Make A Splash Screen In Java?
Java Basic Program Guidance
Javascript Close Window - Javascript close window
Java Web Start Jnlp And Mysql
How To Create Java Button Or Frame - to be customized
How Can I Resize The Web Browser? - using javascript
File Upload Script In Java - File Upload Script in JAVA
Java Mobile Applications - What you wanna have on your phone ?
Javascript Window.open - Plz help me ,, thanks
How To Insert Code With Javascript - How to insert into a div an amount of code
Javascript Slideshow Tutorial - How to make a slideshow in JavaScript
Learning Java
Learning Java - By The Book
Learning Javascript. - -->What I know and a question<--
Free online java compiler =) - no need to download the sun java SDK =)
Java Script Sites
Javascript resources? - ie, a book.
Java editor

Searching Video's for java, javascript, javascript, java
See Also,
advertisement


Java Is Not Javascript; Javascript Is Not Java

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com