Jump to content
xisto Community
Sign in to follow this  
cool1405241471

Whats Is The Difference Between Javascript & Java

Recommended Posts

There is an unbelievably huge diffrence between Java and JavaScript. One being that JavaScript is one of the most evil languages ever emerged, and Java being one of the most beautiful.

JavaScript is a client/server sided Web (Browser) Language. It's used client sided to intervene with and make the webpage you're looking at more interactive.
Java is an application/applet programming language which allows you to write applications.

JavaScript is interpreted.
Java is converted into bytecode which is interpreted

JavaScript requires a supporting browser
Java requires a Virtual Machine

Share this post


Link to post
Share on other sites

it's more than that tobias. java would allow you to make just about any program. if you'd want to, you could make microsoft office with java :P or photoshop. and it would be multi-platform then: you could run it on any os that has a java virtual machine!butttt, it's not that efficient.java's cool though.besides that, Ihunath was 100% right

Share this post


Link to post
Share on other sites

javascript is just a portion of java and it is used for browser-side computing to minimize communcation connections and bandwitdh usage in the webservers.. webspace is cheap now a days but bandwidth cost alot higher..javascript needs browsers with built-in translatorsjava in form of applets can be imbeded in browsers too but it will require you to patched or upgrade your browser to have a java virtual machine support...javascript is limited to the browsers..java have a wide range of uses and it can also run on your cellphones..javascript only needs a browser and can run on almost any browser...java runs in all OS and in all hardware combinations but the downside is that you need to download a virtual machine for that certain OS/hardware combo..the other differences are already given above...

Share this post


Link to post
Share on other sites

Well, it would be easier if you just ask what's NOT a difference. But ok, I will try to answer. Just a few examples: - JavaScript is a client-side language, your computer is compiling it. Javais a browser-side language, it's compiled before you open it. - JavaScript is (much) easier to learn, I learned it in about half a year and pretty good I think, I tried to learn Java, it tooks 3 years and still i don't understand much of it. - Java is much more powerfull then JavaScript. - JavaScript is only used for websites, Java can also be used for other things, like games.

Share this post


Link to post
Share on other sites

Javascript is a very simple scripting language which is used only in between the HTML code on the client side. But JAVA is very very full featured programming language. java is used in many areas. You can create Applicaton Programs in it, it is the most used language in Server side programming, it is used for enterprise level programming, it is used for small screen tools like PDAs, mobiles etc, it is used in network programming.In simple terms Javascript is nothing in compare to Java.

Share this post


Link to post
Share on other sites

Java and Javascript are two COMPLETE different languages!Java is an object-oriented language which is nearly 100% compatible with any machine if the VM (Virtual Machine) is installed. It isn't one of the easiest language and has nothing to do with scripting. It's for programming.Javascript is a scripting language, which is easy to learn and is very handy. You can't write programms with it and it isn't object-oriented. It's an imperative language. But without js, the web would be boooring :) .

Share this post


Link to post
Share on other sites

I totally agree with Alpha six on this one:

Java and Javascript are two COMPLETE different languages!

By the way, neither of them started with the name they have today!

 

When the Netscape corporation invented a scripting possibility in their Netscape Navigator browser, they called it Livescript .

 

When the Sun corporation invented a new programming language, they originally called it Oak .

 

Sun renamed it as Java , and made much publicity around it.

Specifications of the Java language, the JVM (Java Virtual Machine) and the Java API are community-maintained through the Sun-managed Java Community Process.

Java was developed in 1991 by James Gosling and other Sun engineers, as part of the Green Project.

 

As this Java became very well known, Netscape decided to try to cash in on this by renaming the language built into their browser to Javascript. Note that while some Java and Javascript code may appear similar, they are in fact two entirely different languages that serve completely different purposes.

 

Not to be left behind, Microsoft's Internet Explorer was soon updated to support not one but two integrated languages.

One was called vbscript and was based on the BASIC programming language and the other was called Jscript and was very similar to Javascript.

In fact if you were very careful what commands you used you could write code that would be able to be processed as Javascript by Netscape Navigator and as Jscript by Internet Explorer.

 

At that time, Netscape Navigator was by far the more popular browser, and so later versions of Microsoft's Internet Explorer implemented versions of Jscript that were more and more like Javascript.

By the time that Microsoft's Internet Explorer became the dominant browser, Javascript had become the accepted standard for writing interactive processing to be run in the web browser.

 

The importance of this scripting language was too great to leave its future development in the hands of the competing browser developers, and so in 1996 Javascript was handed over to an international standards body called ECMA, who then became responsible for the subsequent development of the language.

As a result of this the language was officially renamed ECMAScript or ECMA-262 but most people still refer to it as Javascript.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.