Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

Replying to javascript vs java


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 15 April 2008 - 05:51 AM

java vs js
javascript vs java

Some people here are a bit confused..



Javascript is a client side browser scripting language where execution occurs on the client (Firefox). Java is an enterprise programming language used to build business applications. There should be no comparison between the two because they are totally different and have completely different uses.

java-area

Posted 22 February 2008 - 08:00 PM

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


I think these two languages are not comparable, because they are intended to different things:
JavaScript is a typical scripting language. JavaScript statements are executed into the browser on client side.
But Java is object-oriented language for server-based- and standalone- applications as well as for applets.
I agree that many statements in these languages look very similar, but they are used on different layers.

However, we can compare JavaScript implementation of business logic with JSP-based implementation, becouse we have sometimes the choice how to implement the busines logic - with JavaScript or with JSP!
For example, we can validate data on server side (using Java) as well as on client side (using JavaScript).
If we respect security, we need to validate data on server side only.
But for non-secure application, we can implement the similar bussines logic on client side, using JavaScript - this implementation will work quicklier. So, it is one of the ways to improve performance.

Is it possible to convert javascripts to java applets? is yes? how?

Applet is a Java application. So, every applet contains not only its own source code, but also uses classes from different Java packages (java.lang.* etc.)
Are we able to convert methods of Java classes into JavaScript functions???
Probably it is possible, but it is a very time-consumed job!
I think it is not good idea to re-use source code of applets in Javascripts. It is easier to create new scripts from scratch!

Posted 22 February 2008 - 07:40 AM

The only thing they have in common is their name. marijnnn explained it very well I think.

Posted 15 January 2008 - 11:05 AM

is it possible?
javascript vs java

Is it possible to convert javascripts to java applets? is yes? how?

marijnnn

Posted 06 October 2004 - 08:08 AM

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 java script: 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
:) 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

k22

Posted 30 September 2004 - 02:56 PM

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 :)

marijnnn

Posted 28 September 2004 - 02:31 PM

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,

overture

Posted 28 September 2004 - 01:33 PM

"its meant to make apples".

Did you mean Applets? or are they the same things?

marijnnn

Posted 28 September 2004 - 09:31 AM

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!

jcguy

Posted 27 September 2004 - 11:56 AM

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.

Review the complete topic (launches new window)