Javascript or java? Which one is better?
From what i know, javascript is easier and faster. But here ive seen lots of people talking about java. Also i know that javascript is better for websites Am i correct or which is better? And why please?
These are very different languages with different purposes. If you want to add some interactivity to a website, Javascript is a good language to do that. If you want to create a standalone application, Java provides a object-oriented programming language that allows you to do so. I like the explanation at this website: http://www.dannyg.com/ref/javavsjavascript.html
i agree; they have different purposes.
In addition to what russosf said, JavaScript is neither a part of Java nor does it belong to the owners/developers of Java. The name JavaScript is a misnomer in this sense. There is no relation between the two and both have their own specific purpose.
Eh, that site is right insofar as it is completely wrong nowadays. JavaScript is a very *different* language, with a different approach to objects than Java has. As A_clan points out, they are unrelated in terms of heritage, besides borrowing syntax heavily from the C family of languages. JavaScript was named as such mostly to capitalize on all the marketing investment Sun was putting into Java. Nowadays JavaScript is very much considered a full blown language (it has always *been* one, but the true power of JS has only been leveraged at large scale this decade), and there are ways to run it outside the browser. Large-scale web applications are written entirely in JavaScript. The movement to use JS on web servers as well as clients is growing thanks to Node.js, and frameworks like Cappuccino let you run JavaScript applications as standalone applications on your desktop. So, which is better? It depends on what you're trying to do, and, to some extent, which one you happen to prefer once you know them well. I'm more of a fan of JS, but that's because I dislike Java heavily, not for any other reason.
just learn them all... and see which one is more useuful for what..
Both don't solve same problem and I think you got the doubt because of the same word 'java'in both. I did same mistake 2 years back and asked a person should i know java to learn javascript :D
Well guys, thanks you all
java is more resourcefull
JavaScrip is a scrpting language while Java is a programming language. If you are planning to add some dynamic features (automatic background changing, dynamic menues) to you web pages, validation of data while filling a web form, then JavaScript is great. But if you planning for serious programming definitely go for JAVA.
well i think if you want to learn hat for web, you shuld learn Silverlight ^^
There is no difference in seriousness between Java or JavaScript. They are simply different. The best way to go is to learn both, or multiple languages, whichever you choose. OpenStudy, for example, is written in JavaScript on the client and Scala on the server. Previous iterations have used ActionScript (via Flash and Flex), Java (for GWT), Ruby (via Rails), Node.js for server-side JavaScript, and a variety of other tools. They are all tools. As a developer, your best bet is to have a wide variety of tools available to you so that when a problem comes along that is particularly well-suited for one of them, you're ready, or at least you're ready to learn.
thanks...really helpfull information
Join our real-time social learning platform and learn together with your friends!