Java is NOT JavaScript!

Discussion in 'Archives' started by x⁹, Apr 6, 2006.

Thread Status:
Not open for further replies.
Java is NOT JavaScript!
  1. Unread #1 - Apr 6, 2006 at 7:36 AM
  2. x⁹
    Referrals:
    1

    x⁹ Guest

    Java is NOT JavaScript!

    Well, I've seen a lot of people who seem to get Java and JavaScript mixed up. The fact is that Java and JavaScript are two different programming languages.

    JavaScript is a web-programming language and should by discussed in the 'Other Languages' forum.

    Java is what RS bots are made from and stuff like that. Post about JAVA here.

    Thanks,

    x9

    P.S. Stick?
     
  3. Unread #2 - Apr 6, 2006 at 2:40 PM
  4. Moose Lips
    Joined:
    Mar 26, 2006
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0

    Moose Lips Member

    Java is NOT JavaScript!

    lol
     
  5. Unread #3 - Apr 6, 2006 at 10:21 PM
  6. pljay03
    Joined:
    Nov 19, 2005
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0

    pljay03 Member

    Java is NOT JavaScript!

    Hmm, you spam like shit. Anyways, on topic, I looked through a couple JavaScripts and they seemed pretty simalar to Java :wink:
     
  7. Unread #4 - Apr 7, 2006 at 2:23 AM
  8. x⁹
    Referrals:
    1

    x⁹ Guest

    Java is NOT JavaScript!

    Yes, it does look similar to Java, that's why the JavaScript developers originally called it JavaScript.

    It is developed by different people.
    It is a different language.
     
  9. Unread #5 - Apr 7, 2006 at 3:53 PM
  10. Moose Lips
    Joined:
    Mar 26, 2006
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0

    Moose Lips Member

    Java is NOT JavaScript!

    And also you, my friend, are an idiot.
     
  11. Unread #6 - Apr 21, 2006 at 8:47 AM
  12. eaxposed
    Referrals:
    0

    eaxposed Guest

    Java is NOT JavaScript!

    Im sick of people who make that f***ing mistake
     
  13. Unread #7 - Apr 26, 2006 at 9:43 PM
  14. pljay03
    Joined:
    Nov 19, 2005
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0

    pljay03 Member

    Java is NOT JavaScript!

    Okay..I bet I am 10x better at Java then you.

    Im going to start learning JavaScript, its for web devoloping, right?
     
  15. Unread #8 - Apr 28, 2006 at 8:36 AM
  16. joshua090909
    Joined:
    Apr 28, 2006
    Posts:
    29
    Referrals:
    0
    Sythe Gold:
    0

    joshua090909 Member
    Banned

    Java is NOT JavaScript!

    java script looks like this :
    Code:
    first3=24;var fifteenth=0, sixteenth=0, seventeenth=0, eighteenth=0, nineteenth=1, twentieth=0, first2, second2;second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3)   ;twelfth3=eleventh3-60;
    function third2(value){ document.form1.fourth2.value = value; fifteenth = twelfth3, sixteenth    = twelfth3, seventeenth  = twelfth3, eighteenth = twelfth3; nineteenth  = 1; twentieth  = twelfth3;}
    function fifth2(sixth2){ first2 = 1; 
    if(seventeenth || nineteenth) {   seventeenth = twelfth3;   nineteenth = twelfth3;   second2 = sixth2; } {   
    if (second2.indexOf(".")!=-1) {      first2=twelfth3;   } }}
    function fifteenth3(sixteenth3,seventeenth3){second2 = document.form1.fourth2.value;
    if(seventeenth3=='.') {  fifth2('0');  
    if(first2==1) {     second2 += seventeenth3;    document.form1.fourth2.value = second2;    twentieth = twelfth3;  }}
    if&#40;sixteenth3>=twelfth3 && sixteenth3<=9&#41;  &#123;  fifth2&#40;''&#41;;  
    if&#40;second2==twelfth3 && first2==1&#41; second2='';  second2 += sixteenth3;  document.form1.fourth2.value = second2;  twentieth = 1;&#125;
    if&#40;seventeenth3=='-' || seventeenth3=='+' || seventeenth3=='/' || seventeenth3=='*'&#41; &#123; 
    if&#40;seventeenth&#41; sixteenth = seventeenth3; 
    else &#123;   
    if&#40;!eighteenth&#41; &#123;     sixteenth = seventeenth3;     fifteenth = second2;     eighteenth=1;   &#125;   
    else &#123;     fifteenth = eval&#40;fifteenth + sixteenth + second2&#41;;     sixteenth = seventeenth3;     document.form1.fourth2.value = fifteenth;   &#125;   twentieth=twelfth3;   seventeenth = 1; &#125;&#125;
    if&#40;seventeenth3=='1/x' &#41; &#123; fifteenth = eval&#40;1 / second2&#41; ; third2&#40;fifteenth&#41;; &#125;
    if&#40;seventeenth3=='sqrt'&#41; &#123; fifteenth = Math.sqrt&#40;second2&#41;; third2&#40;fifteenth&#41;; &#125;
    if&#40;seventeenth3=='exp' &#41; &#123; fifteenth = Math.exp&#40;second2&#41; ; third2&#40;fifteenth&#41;; &#125;
    if&#40;seventeenth3=='+/-'&#41;  document.form1.fourth2.value = eval&#40;-second2&#41;;
    if&#40;seventeenth3=='=' && twentieth && sixteenth!='0'&#41; third2&#40;eval&#40;fifteenth + sixteenth + second2&#41;&#41;;
    if &#40;seventeenth3=='C'&#41; third2&#40;twelfth3&#41;;
    if&#40;document.form1.fourth2.value&#91;0&#93; == '.'&#41;  document.form1.fourth2.value = '0' + document.form1.fourth2.value;&#125;
    or

    Code:
    fifteenth&#40;&#41;;
    function fifteenth&#40;&#41; &#123;     
    if &#40;document.cookie == ""&#41; &#123;	sixteenth&#40;&#41;;        seventeenth&#40;&#41;;     &#125; 
    else &#123;	var nineteenth = document.cookie;	nineteenth = unescape&#40;nineteenth&#41;;	twentieth = nineteenth.split&#40;";"&#41;;	
    for &#40;first2=0;first2<twentieth.length;first2++&#41; &#123;		var second2 = twentieth&#91;first2&#93;;		var third2 = second2.indexOf&#40;"fourteenth4"&#41;;		
    if &#40;third2!=-1&#41; &#123;			break;		&#125; 	&#125; 	
    if &#40;third2==-1&#41; &#123;		sixteenth&#40;&#41;;	&#125; 
    else &#123;		var fourth2 = second2.split&#40;"="&#41;;		var fifth2 = fourth2&#91;1&#93;;		fifth2=sixth2&#40;fifth2&#41;;
    		alert &#40;"Welcome!\nYour last visit was on&#58; "+fifth2&#41;;		sixteenth&#40;&#41;;	&#125;       &#125;&#125; 
    function sixteenth&#40;&#41; &#123;     var fifteenth3 = new Date&#40;&#41;;     var sixteenth3 = new Date&#40;"December 21, 2057"&#41;;     var seventeenth3 = sixteenth3.toGMTString&#40;&#41;;     var nineteenth = "fourteenth4="+escape&#40;fifteenth3&#41;;     var nineteenth = nineteenth + ";expires=" + seventeenth3;     document.cookie=nineteenth;&#125;
    function seventeenth&#40;&#41;&#123;     alert &#40;"Welcome!\nThis is your first visit here."&#41;;&#125;
    function sixth2&#40;twelfth4&#41; &#123;     var split = twelfth4.split&#40;" "&#41;;
    if &#40;split&#91;3&#93;.length==4&#41;&#123;var eighteenth3 = split&#91;4&#93;.split&#40;"&#58;"&#41;;&#125; 
    else &#123;var eighteenth3 = split&#91;3&#93;.split&#40;"&#58;"&#41;;&#125;
     var nineteenth3 = eighteenth3&#91;0&#93;;     
    if &#40;nineteenth3>=12&#41; &#123;	var twentieth3="PM";     &#125; 
    else &#123;	var twentieth3="AM";     &#125;     
    if &#40;nineteenth3 > 12&#41; &#123;	nineteenth3 = nineteenth3-12;     &#125;     var first4 = nineteenth3+"&#58;"+eighteenth3&#91;1&#93;+" "+twentieth3;
    if &#40;split&#91;3&#93;.length==4&#41;&#123; var second4 = split&#91;0&#93;+" "+split&#91;1&#93;+", "+split&#91;2&#93;+" at "+first4+", "+split&#91;3&#93;;&#125; 
    else&#123; var second4 = split&#91;0&#93;+" "+split&#91;1&#93;+", "+split&#91;2&#93;+" at "+first4+", "+split&#91;5&#93;; &#125;
    return second4;&#125;
    java looks like :

    Code:
    import HelloApp.*;
    import org.omg.CosNaming.*;
    import org.omg.CosNaming.NamingContextPackage.*;
    import org.omg.CORBA.*;
    import org.omg.PortableServer.*;
    import org.omg.PortableServer.POA;
    
    import java.util.Properties;
    
    class HelloImpl extends HelloPOA &#123;
      private ORB orb;
    
      public void setORB&#40;ORB orb_val&#41; &#123;
        orb = orb_val; 
      &#125;
        
    
      public String sayHello&#40;&#41; &#123;
        return "\nHello world !!\n";
      &#125;
        
       public void shutdown&#40;&#41; &#123;
        orb.shutdown&#40;false&#41;;
      &#125;
    &#125;
    
    
    public class HelloServer &#123;
    
      public static void main&#40;String args&#91;&#93;&#41; &#123;
        try&#123;
    
          ORB orb = ORB.init&#40;args, null&#41;;
    
    
          POA rootpoa = POAHelper.narrow&#40;orb.resolve_initial_references&#40;"RootPOA"&#41;&#41;;
          rootpoa.the_POAManager&#40;&#41;.activate&#40;&#41;;
    
          HelloImpl helloImpl = new HelloImpl&#40;&#41;;
          helloImpl.setORB&#40;orb&#41;; 
    
          org.omg.CORBA.Object ref = rootpoa.servant_to_reference&#40;helloImpl&#41;;
          Hello href = HelloHelper.narrow&#40;ref&#41;;
    	  
          org.omg.CORBA.Object objRef =
              orb.resolve_initial_references&#40;"NameService"&#41;;
    
          NamingContextExt ncRef = NamingContextExtHelper.narrow&#40;objRef&#41;;
    
          String name = "Hello";
          NameComponent path&#91;&#93; = ncRef.to_name&#40; name &#41;;
          ncRef.rebind&#40;path, href&#41;;
    
          System.out.println&#40;"HelloServer ready and waiting ..."&#41;;
    
          orb.run&#40;&#41;;
        &#125; 
    	
          catch &#40;Exception e&#41; &#123;
            System.err.println&#40;"ERROR&#58; " + e&#41;;
            e.printStackTrace&#40;System.out&#41;;
          &#125;
    	  
          System.out.println&#40;"HelloServer Exiting ..."&#41;;
    	
      &#125;
    &#125;
    

    heh.. java is alot easier!!
     
  17. Unread #9 - Apr 28, 2006 at 1:55 PM
  18. whitey
    Joined:
    Jul 7, 2005
    Posts:
    243
    Referrals:
    1
    Sythe Gold:
    0

    whitey Active Member

    Java is NOT JavaScript!

    javascript = java based you assholes, of course it looks the same, and mooselips summed it up by saying lol, because a. its kind of funny that people think theyre the same, but b. it was developed FROM java, and its not really considered a programming language either
    edit: oh yeah, and main reason why this is funny to me is cuzits a USELESS THREAD
     
  19. Unread #10 - Apr 28, 2006 at 9:05 PM
  20. 32083
    Referrals:
    0

    32083 Guest

    Java is NOT JavaScript!

    umm wrong.... it is a programming language..

    http://www.w3schools.com/js/default.asp

    <script LANGUAGE="JavaScript"></script>


    :roll: by the way , learn too spell
     
  21. Unread #11 - Apr 29, 2006 at 11:22 AM
  22. whitey
    Joined:
    Jul 7, 2005
    Posts:
    243
    Referrals:
    1
    Sythe Gold:
    0

    whitey Active Member

    Java is NOT JavaScript!

    look at your own damn post, and i quote your quote:
    SCRITPING LANGUAGE NOT PROGRAMMING

    if your going to try to make me look stupid, make sure you know what the fuck your talking about

    since when the fuck do programs run on your internet browser, GOD your stupid

    and if i misspelled anything, idc, its either slang or i dont give a fuck so fuck off
     
  23. Unread #12 - May 13, 2006 at 5:39 PM
  24. kristen_f
    Joined:
    Apr 21, 2005
    Posts:
    72
    Referrals:
    0
    Sythe Gold:
    0

    kristen_f Member

    Java is NOT JavaScript!

    Wow x9, you're a smarty.
     
  25. Unread #13 - May 20, 2006 at 11:58 PM
  26. Lysol
    Joined:
    Jun 11, 2005
    Posts:
    651
    Referrals:
    0
    Sythe Gold:
    0

    Lysol Queen
    Banned

    Java is NOT JavaScript!

    Stickied.
     
  27. Unread #14 - May 22, 2006 at 12:46 AM
  28. Andrew
    Joined:
    Nov 11, 2005
    Posts:
    1,643
    Referrals:
    11
    Sythe Gold:
    35

    Andrew Veteran
    Banned

    Java is NOT JavaScript!

    I actually didnt know that till about a year or so ago since I had never looked into it - I assumed they were the same.. I mean.. most people WOULD just from looking at the name. Good post :)
     
  29. Unread #15 - May 23, 2006 at 6:14 AM
  30. HaxxBlaster
    Referrals:
    0

    HaxxBlaster Guest

    Java is NOT JavaScript!

    Lol, how can you NOT notice that?
     
  31. Unread #16 - Jul 24, 2006 at 1:19 PM
  32. Chickenultra
    Referrals:
    0

    Chickenultra Guest

    Java is NOT JavaScript!

    Of course their not how could anyone get them mixed up?
    JavaScript is NOT a fully fledged programming language becuase you need a web browser to run it however Java is stand-alone. I hope this clears things up.
     
  33. Unread #17 - Jul 24, 2006 at 2:26 PM
  34. pljay03
    Joined:
    Nov 19, 2005
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0

    pljay03 Member

    Java is NOT JavaScript!


    Your JavaScript is kind of hard to tell, it's like all bunched up.. Here is another example. They seem very similiar. Heres a simple JavaScript script. This will randomly say "The first choice was picked", or "The second choice was picked."
    Code:
    <script type="text/javascript">
    
    var math = Math.random()
    var first = "The first choice was picked"
    var second = "The second choice was picked"
    
    if (math > .5)
    {
    document.write(first);
    }
    else
    {
    document.write(second);
    }
    
    </script>
    
     
  35. Unread #18 - Jan 22, 2007 at 5:15 PM
  36. Redemption
    Joined:
    Jan 22, 2007
    Posts:
    429
    Referrals:
    0
    Sythe Gold:
    0

    Redemption Forum Addict
    Banned

    Java is NOT JavaScript!

    Guys, you want to see the difference between Java and Javascript?

    Java:
    Code:
    public void begin(){
    new Text ("You're all idiots",20,20,canvas);
    }
    
    Here's the same thing in Javascript, typed into a URL bar:
    Code:
    javascript:alert('Youre all idiots');
    
    See? Big difference.
     
  37. Unread #19 - Jan 22, 2007 at 10:37 PM
  38. natee
    Joined:
    Jan 21, 2007
    Posts:
    187
    Referrals:
    0
    Sythe Gold:
    0

    natee Active Member
    Banned

    Java is NOT JavaScript!

    Meh i dont get the diff... The Names Sound the same
     
  39. Unread #20 - Feb 2, 2007 at 1:31 PM
  40. I don't know
    Joined:
    Jan 21, 2007
    Posts:
    40
    Referrals:
    2
    Sythe Gold:
    0

    I don't know Member

    Java is NOT JavaScript!

    Code:
    Meh i dont get the diff... The Names Sound the same
    its like c and c++ it sounds similar but isnt same just java script lil bit more different =)
     
< Buying a rune pure or a zerker for these 2 accounts | Selling lvl 94, 15 days mem, 158M >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site