Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> javascript vs java
wannabeeaweak
post Sep 25 2004, 04:41 AM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 71
Joined: 24-September 04
From: Los Angeles, CA
Member No.: 830




in my opinion javascript is better then java becasue java requires more programing experecense then javascript and i think to that javascript is more reliable then java in some ways
Go to the top of the page
 
+Quote Post
k22
post Sep 25 2004, 02:01 PM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 165
Joined: 22-September 04
From: IS - IT - US - BE
Member No.: 804



I don't know Java, but i think that JS is too simple sometimes, because with Java or other Lang you can use more functions and Options....JS is a basic lang IMHo... wink.gif
Go to the top of the page
 
+Quote Post
overture
post Sep 25 2004, 03:12 PM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 208
Joined: 6-September 04
From: England
Member No.: 315



I have been learning Java for college, and it is pretty interesting (for me anyways), although you do have to do quite a bit of code to print out just a little piece of text, i think. You also require - to view your java - a compiler ot some sort, javascript does not so it has a great advantage over Java in this way. Javascript is so much easier, but you cannot really compare them they both have completely different purposes. You can use Java in websites i think, but it can make the website so very slow.
Go to the top of the page
 
+Quote Post
jcguy
post Sep 27 2004, 11:56 AM
Post #4


Premium Member
Group Icon

Group: Members
Posts: 382
Joined: 5-September 04
Member No.: 255



Can you compare Javascript and Java? Although their names resemble each other, are they very similar languages to each other? I have the impression that both languages are very different from each other, so you cant really compare them fairly.
Go to the top of the page
 
+Quote Post
marijnnn
post Sep 28 2004, 09:31 AM
Post #5


Premium Member
Group Icon

Group: [HOSTED]
Posts: 336
Joined: 22-September 04
Member No.: 798



javascript = script version of a small part of java.
please people, do not confuse the two.

java is a programming language. you can make programs that run on any computer that hase the java virtual machine installed. it's meant to make apples ( you know, the little games and stuff you find on the internet).

javascript is, as the name says, a scripting language. it is not compiled but interpretted. it is used to do some simple things on websites, like popups, change values in forms and stuff. you cannot make a program that works on it's own by using javascript!!!

if you're just interested in making sites there is no need for you to learn java, just learn javascript.

the way it works is quite the same: if, while, variables... all the same. it's just that java has a lot more power & options. and is compiled!
Go to the top of the page
 
+Quote Post
overture
post Sep 28 2004, 01:33 PM
Post #6


Premium Member
Group Icon

Group: Members
Posts: 208
Joined: 6-September 04
From: England
Member No.: 315



"its meant to make apples".

Did you mean Applets? or are they the same things?
Go to the top of the page
 
+Quote Post
marijnnn
post Sep 28 2004, 02:31 PM
Post #7


Premium Member
Group Icon

Group: [HOSTED]
Posts: 336
Joined: 22-September 04
Member No.: 798



haha, indeed applets. applets are small programs that can be embedded in html pages. like videos. they have little or no interaction with the html. it's really seperate.

java -> programs
javascript -> scripts,
Go to the top of the page
 
+Quote Post
k22
post Sep 30 2004, 02:56 PM
Post #8


Advanced Member
Group Icon

Group: Members
Posts: 165
Joined: 22-September 04
From: IS - IT - US - BE
Member No.: 804



I read that the only problem with java is the speed, Java is slower than other lang and os is't use as Php or Asp, is it true?I have only tried JS and it's fast enough wink.gif
Go to the top of the page
 
+Quote Post
marijnnn
post Oct 6 2004, 08:08 AM
Post #9


Premium Member
Group Icon

Group: [HOSTED]
Posts: 336
Joined: 22-September 04
Member No.: 798



JS is different than javascript. javascript was made by netscape, JS by microsoft as an answer to javascript.
java itself was made by sun and is a complete programming language, like vb, vb.net, c++.

java is slower than vb c, for the obvious reason that it doesn't interact with the computer or os directly, but there is an extra layer between them, the java virtual machine. you can compare it to talking to someone of another country.
when you know his language, you can just talk the language directly
if you don't, you have to use an extra person that translates everything for you, so it'll take more time.

however, there are java compilers that will compile java into exe files that you can run without the virtual machine. those are faster, but the exe file will not work on all the computers.

the coolest thing about java is that everyone, wether you are using a mac, linux, pc, solaris,... can install the java virtuall machine from java.sun.com
and everybody can run your programs that you have written in java!
so if you want to make a photo-editor for a mac-user, but you are on a linux machine, you could do it in java. it's the most universal programming language.


there is an alternative to php & asp that uses java. it's called jsp: java servlet pages. it's a very secure & fast alternative to php & asp.net. problem is that only paid servers support it. you need a tomcat server.

so, to sum it all up
1) client side scripting:
javascript (netscape, universal) or JScript (made by microsoft, only IE). there's also vbscript, also by msoft, only IE
use javascript: easy and more universal.

2) serverside scripting: jsp. very secure & fast. precompiled. for big-ass companies that have their own webserver or can afford quite some money to pay for their webserver. better than php, but php has the advantage to be very cheap (free or cheap servers, easy to learn) and you'll find a lot of example code, tutorials,....
so, if you have to make a choice for serverside scripting:
a) you have money: 1. jsp, 2. asp.net, 3.php
cool.gif you don't: 1.php

3) programming language: that's java. works on every machine in the world that has the java virtual machine installed, which is free at java.sun.com that's the big advantage: the programs you write can be used by everybody. but because of the extra layer, it's slower than other programming languages. but you can compile it for one machine, so it's faster. don't know about the speed then. i think it'll still be slower than c++ and c# and the likes
Go to the top of the page
 
+Quote Post
iGuest
post Jan 15 2008, 11:05 AM
Post #10


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



is it possible?
javascript vs java

Is it possible to convert javascripts to java applets? is yes? how?
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting Screen Resolution using Javascript.(8)
  2. How To Create A Popup Window With Javascript?(19)
  3. Javascript: Disable Mouse Right-click In Browser(16)
  4. Best Way To Learn Javascript(9)
  5. Javascript: Text To Texbox And Back To Text(2)
  6. Unobtrusive Javascript Image Rollovers(0)
  7. Dynamicdrive: Good Site For JavaScript Codes(5)
  8. Downloads With Javascript?(7)
  9. Javascript: Simple Slidedown Menu(2)
  10. JavaScript: Simple Dropdown Menu(1)
  11. Calling Of Functions Between Mulitple External Javascript Files(2)
  12. Javascript: Browser Detection Script(0)
  13. JavaScript: Hide And Show Any Element With CSS(5)
  14. Ever Needs To Find Out A Table Height Or With With JavaScript(2)
  15. Create And Import JavaScript Modules For A Large Script(2)
  1. Vertical Marquee Using JavaScript(0)
  2. JavaScript Frames & Querystring(4)
  3. JavaScript Off Redirect Script(2)
  4. I Need Help With Javascript.(7)
  5. Problems With Dynamically Loading Javascript(2)
  6. Add Text To Textarea(6)
  7. Javascript Question(4)
  8. Javascript: How Do I Create Embedded Pop-up Windows?(7)
  9. Problem With Javascript Alert();(9)
  10. Include Function For Javascript(7)
  11. Fun With Javascript And Forms(2)
  12. Javascript Help Needed : Alert(z) Works Fine But Document.write Not(2)
  13. Javascript Changes Aren't Working.(6)


 



- Lo-Fi Version Time is now: 11th October 2008 - 04:02 AM