Does Java and JavaScript are the same?

Asked By 0 points N/A Posted on -
qa-featured

Does Java and Javascript programming are the same? If not, Define both terminologies and their usage.

SHARE
Best Answer by Sheldon Ron
Best Answer
Best Answer
Answered By 0 points N/A #101890

Does Java and JavaScript are the same?

qa-featured

 

Java and java script are different. Java is a programming language and java script is a scripting language. Java can be used to create standard stand alone applications. But java script is used in HTML codes for better look of HTML. Java script is easy to learn and understand while Java is a relatively tough language. Both are Object Oriented languages; however the syntax of both these are similar to look at. Java is a normally known language to be used in a different platform called JVM. HTML codes embedded with java scripts also require to enable java script in browsers. However applet used in the browsers are created on Java and not java script.
Thanks
 
Answered By 0 points N/A #195497

Does Java and JavaScript are the same?

qa-featured

Hi,

Java is an object oriented programming language which allows developer to develop applications which run on any platform like windows,Mac ,Unix.Java is mainly a platform and it does not depend on the computer architecture.On the other hand JavaScript is standardised scripting language that usually runs inside the browser.It is not compiled in advance – it is interpreted on the fly by the browser.Java programs are usually compiled into bytecode which runs within a Java Virtual Machine. The Java program can run as an applet inside a browser, a servlet on the server, a regular desktop application, etc.JavaScript is text-based. You write it to an HTML document and it is run through a browser. You can alter it after it runs and run it again and again. Once the Java is compiled, it is set. Sure, you can go back to the original text and alter it, but then you need to compile again.

Login/Register to Answer

Related Questions