What's The Relationship Between Javascript And Java - are they the same or different

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

What's The Relationship Between Javascript And Java - are they the same or different

vietonline
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.

Reply

FirefoxRocks
I don't get confused about Java and JavaScript at all actually. smile.gif

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. wink.gif
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! smile.gif

 

 

 


Reply

rama3i
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. smile.gif

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. wink.gif
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! smile.gif


Reply

hype
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...

Reply

peroim
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. rolleyes.gif
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.

Reply

.hack//GU
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. rolleyes.gif
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.

Reply



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*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. relation between javascript and java - 9.24 hr back. (1)
  2. cache:yf48cs6s8mgj:www.trap17.com/index.php/adjusting-rows-cols-frames-frameset-using-javascript-not-working-firefox-3-not-working_t59255.html frameset rows javascript - 126.40 hr back. (1)
Similar Topics

Keywords : whats, relationship, javascript, java

  1. Need Help With Javascript Drag And Drop Script
    Having trouble with javascript drag and drop script. (2)
  2. Java Script To Hide The Url In Address Bar
    Does any one know about this ? (6)
    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 ??....
  3. Which Is Good Java Or Dot Net
    which is good (3)
    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....
  4. Java And Xml: Links You Must Have
    (1)
    XML and JavaGeneral XML resources * "XML, Java and the Future of the Web," Jon Bosak. The
    paper that started it all, at least from a Java programmer's point of view. Definitely worth a
    read, even if it's a bit dated. Jon is commonly considered to be the father of XML. Funny how
    all of these technologies seem to have paternity
    http://metalab.unc.edu/pub/sun-info/standa...hy/xmlapps.html * "Media-Independent
    PublishingFour Myths about XML" Jon Bosak
    http://metalab.unc.edu/pub/sun-info/standa.../why/4myths.htm * Robin Cover's XML-....
  5. Java Multithreading Issues
    (2)
    So we have a web based application running on JBoss on several clustered servers. The front end of
    the application is using jms to communicate with the middleware MDB, which communicates with other
    backend application servers. The application runs well when only a few requests are submited.
    However, when requests boost to couple thousands, the app starts to crash. The log files shows a
    concurrency issue with the ThreadPoolExecutor. When we set the core size pool to one the issue was
    solved. Looks like we have concurrent issue of multiple threads accessing same resource s....
  6. How To Implement Single Instance Application On Java
    (0)
    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 Managem....
  7. Call Pdf995 From Java
    (0)
    How can i call pdf995 engine from Java to generate Pdf from Doc. This approach from Visual Basic
    Application is provided in http://www.pdf995.com/faq_dev.html . How can i approach same from Java?
    Can anyone help? ....
  8. Java Game
    (2)
    Hi, I'm interested in game creation on websites. The game should be playable via web browser.
    I'm not new in programing, I know C++, C# and OpenGL api. But I'm new on Java. So I have
    some questions I want to ask You: Will I'l be able to create simple 2d game with java which
    would be playable via web browser? Simple 2d game means: timers, images, animated sprites, in game
    font. Will I'l be able to use OpenGL? Or I should use something different? Does Trap17 suports
    java graphics features I want? Thank You for Your time and answers.....
  9. Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working
    (4)
    I am not able to adjust frames length/width in a frameset using java script functions I am using
    firefox 3. In below code changerows is not working for me. Where as same is working in IE6.
    Please help me in resolving this issue. Note: here frameset1 is the name given to the FRAMESET.
    CODE function changeRows() { parent.frameset1.rows="30%,70%" }function
    restoreRows() { parent.frameset1.rows="50%,50%" } ....
  10. Learn Java Programming Language Online Step By Step
    (1)
    I had found this site >> http://learnjava.awardspace.com This website is for people who want
    to learn Java Programming Language step by step. This website also includes JAVA lessons from the
    beginning to advanced level. So this site appropriates for the beginner of Java programmer language
    or non-basic Java Programming Language. The lessons are easy to follow and understand starting
    from how to get your PC JAVA ready, the fundamental programming concept and creating the real
    application. Moreover, the working examples are also included. Please enjoy the les....
  11. Java Object[][] Help
    (2)
    I'm having some issues with working with objects . I get an index out of bounds ex.
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 heres how
    I'm using it ---------------------------- Object contestants = new Object {}; contestants
    = "test"; any ideas appreciated. Do I need to specify the initial size on creation or something?
    It seems I answered my own question I gave it an inital size then I was able to add things. But is
    there a way I can add to it on the fly without knowing its require maximum size?....
  12. Java Vs Javascript
    (11)
    I thought they were completely different things. Surely javascript should be seperated from the rest....
  13. Document.write & Noscript Questions (javascript)
    (1)
    I am trying to use javascript to include a stylesheet depending on the user's resolution. The
    HTML CODE <head>    <meta http-equiv="Content-Type" content="text/html;
    <?php echo _ISO; ?>" />    <?php if ($my->id) {
    initEditor(); } ?>    <?php mosShowHead(); ?>   
    <noscript><link rel="stylesheet" type="text/css"
    href="http://www.highimpactart.org/templates/_HighImpactArt_/1024/1024.css"
    /></noscript>    <script type="....
  14. Java Or C++
    (10)
    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....
  15. Java Applet Query
    (1)
    Hey there, I have made an applet that shows images moving about the screen. I have pause/resume
    buttons that work. But i've noticed that when the applet is interuppted by something i.e moving
    another window over it, it will automatically repaint. My question is how can I stop this? How can
    I make it so that the only time that paint is called is when I want it to be called? Thanks in
    advance!....
  16. Helpful Registry Edit For Java Programmers
    Command Prompt on right click menu (3)
    With this registry edit you can easily open the current folder in prompt without going through any
    Change Directory commands (cd). This is useful for people like me who are programming in JAVA, and
    every time to create class files and test them I have a diificult time just entering the commands in
    Prompt. But if you don't want to use this registry edit you can create the directory in
    C:\ drive like C:\files so you have to navigate very little in prompt. If you are
    experienced in regedit you can do it yourself shown below OR download the attachment and app....
  17. Jsp Or Java Chat Script Like Mig33
    (5)
    so most of you guys know mig33. its a wap application,probaly java.most kindly to be java. does
    anyone have java knowlege or knows where i can get a chat script like mig33? i also know this server
    supports jsp so im planing to use it for my application. i was hosted here last year but moved
    because i found a better host. now im back just to use the jsp on this server. Im planing to run
    chat applictions so if any one wants to help me in my project let me know.....
  18. The Power Of Java
    the best application that shows java features (14)
    Java technology has various usage from mobile applications to Enterprise applications. I think the
    power of Java technology in web applications and applets is showed in "meez.com" where u can create
    your own 3d avatars. /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
    alt="rolleyes.gif" />....
  19. Best Java Framework For J2ee?
    Your Opinion About The Best Java Framework (6)
    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.....
  20. Javascript : No Right Click Script !@
    This script will allow you to protect your source coad ! (12)
    This script will help you to protect your source code Add this to Section of your site
    ! HTML <script language=JavaScript> var message="Function Disabled!";
    /////////////////////////////////// function clickIE4(){ if
    (event.button==2){ alert(message); return false; } } function
    clickNS4(e){ if
    (document.layers||document.getElementById&&!document.all){ if
    (e.which==2||e.which==3){ alert(message); return false; } } }
    if (docume....
  21. Java Helpdesk
    All your queries regarding Java Programming goes here. (8)
    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.....
  22. Adding Rows & Columns In Html Table Using Javascript
    (1)
    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                  <table border="0" width="90%"
    align="center" id="itemsTable">                   <tr>
                       <td width="20%">                     Quantity                   
    <....
  23. Java Basic Program Guidance
    (6)
    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....
  24. Javascript Close Window
    Javascript close window (15)
    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.....
  25. How To Create Java Button Or Frame
    to be customized (14)
    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 w....
  26. Java Mobile Applications
    What you wanna have on your phone ? (7)
    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... ....
  27. [help] Java Script: Window.open
    Works with Firefox, not IE (10)
    CODE <HEAD> var popUpWin=0; function popUpWindow(URLStr) {
     if(popUpWin)  {    if(!popUpWin.closed) popUpWin.close();  }
     popUpWin = open(URLStr, 'GunBound Tactics: Screenshots',
    'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90')
    ;; } </HEAD> <BODY> <a
    href="javascript:popUpWindow('/f11/clipped.php');"><b>Clips&
    #60;/b></a> This is a script for opening a new window. It works ....
  28. Javascript Slideshow Tutorial
    How to make a slideshow in JavaScript (4)
    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 <script> tag in the of our HTML
    document. In that script tag we will build the following: CODE      first = 1;      la....
  29. Java Script Drop Down Menu With Css
    - a full code for a dynamic drop down (2)
    Introduction This is a code that I use to dynamically create the drop down menus. First, you have
    to edit the following code and put it in your Javascript. Notice : /*** SET BUTTON'S FOLDER HERE
    ***/. Edit that to your folder. Also, the /*** SET BUTTONS' FILENAMES HERE ***/. This creates a
    mouseover when the drop down is activated. Put all your onmouseover images under: oversources = new
    array; and your onmouseout images under : upsources. Be sure to set your on and out images above
    each other. CODE /*** SET BUTTON'S FOLDER HERE ***/ var buttonFold....
  30. Auto Run Java Program
    Run Java program on double click (11)
    Some of the installables in java comes in form of .jar file, one has to just double click or type
    "java -jar file.jar", and it starts executing. The reason for this is a line appended in the
    MANIFEST.MF file of that jar file. For writing a similar jar file of your own, just write your java
    file, then compile the same and create a jar file. Create a MANIFEST.MF file and the content should
    have the followings: CODE Manifest-Version: 1.0 Created-By: xyz Main-Class:
    xyz.MainClass Here xyz.MainClass is the main class. Now create a jar file with the man....

    1. Looking for whats, relationship, javascript, java

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for whats, relationship, javascript, java

*MORE FROM TRAP17.COM*
Similar
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
Java And Xml: Links You Must Have
Java Multithreading Issues
How To Implement Single Instance Application On Java
Call Pdf995 From Java
Java Game
Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working
Learn Java Programming Language Online Step By Step
Java Object[][] Help
Java Vs Javascript
Document.write & Noscript Questions (javascript)
Java Or C++
Java Applet Query
Helpful Registry Edit For Java Programmers - Command Prompt on right click menu
Jsp Or Java Chat Script Like Mig33
The Power Of Java - the best application that shows java features
Best Java Framework For J2ee? - Your Opinion About The Best Java Framework
Javascript : No Right Click Script !@ - This script will allow you to protect your source coad !
Java Helpdesk - All your queries regarding Java Programming goes here.
Adding Rows & Columns In Html Table Using Javascript
Java Basic Program Guidance
Javascript Close Window - Javascript close window
How To Create Java Button Or Frame - to be customized
Java Mobile Applications - What you wanna have on your phone ?
[help] Java Script: Window.open - Works with Firefox, not IE
Javascript Slideshow Tutorial - How to make a slideshow in JavaScript
Java Script Drop Down Menu With Css - - a full code for a dynamic drop down
Auto Run Java Program - Run Java program on double click
advertisement



What's The Relationship Between Javascript And Java - are they the same or different



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE