Does Java and JavaScript are the same?
Does Java and Javascript programming are the same? If not, Define both terminologies and their usage.
Does Java and Javascript programming are the same? If not, Define both terminologies and their usage.
Â
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.