CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@TheV • 26 Dec, 2010
Please explain me what is java script and where it is used....!!
And how it is different from Java....!!

😕😕😕
@Ankita Katdare • 26 Dec, 2010 Re: What is the difference between Core Java and Java script?

Java and JavaScript might look like one was a direct descendant of the other, but in reality they are far from that.

Java is an object oriented programming language developed by Sun Microsystems that is capable of running on multiple operating systems with the use of an interpreter.
JavaScript, on the other hand, was created by Netscape as a scripting language much like a client side version PHP. It cannot create stand alone applications, but instead resides on an internet browser.

Java uses its own code then executes it on a virtual machine that interprets the Java code into its counterpart native code.

JavaScript is a scripting language, and as such it isn’t compiled. A JavaScript enabled browser takes the script and process it, it would then execute the instructions on the script. The main use of JavaScript is to provide a level of interactivity to web pages that are not achievable with simple HTML.
It can be used along with other technologies like AJAX to give an even more interactive experience. JavaScript can also interact with elements that are not from within its code which Java doesn’t do. Java applications can only be embedded into html pages and from that point on, the Java application works on its own.

Java and JavaScript are two very different languages, because of that they also have different requirements in order to function properly. Installing Java support in your browser does not mean that it would also be able to support JavaScript applications and vice versa.
@nathanmannar • 10 Apr, 2017 JavaScript is an object-oriented scripting language that allows you to create dynamic HTML pages, allowing you to process input data and maintain data, usually within the browser.

Java is a programming language, core set of libraries, and virtual machine platform that allows you to create compiled programs that run on nearly every platform, without distribution of source code in its raw form or recompilation. More on........Java and Javascript

Nathan
@Kaustubh Katdare • 10 Apr, 2017 Okay, looks like we missed out on an important question here. Let's understand it in simplest possible words.

Just about a few years ago, I'd have simply said "Javascript is meant to be run on the client side - in the user's browser to allow for cool animations and effects; while Java mostly handles the server side of the things". In the recent times, JavaScript has been made to run on the servers as well ( node.js ) and is actively being used in OOP form. Keep in mind that Java and JavaScript are two entirely different languages 'meant' for different purposes. Here are some of the main differences between these two languages:

1. The way these languages are run and executed: Java is compiled and interpreted but JavaScript is executed by the browsers. Java will need JDK/JRE to run and JS is by default enabled by all the modern browsers. In short, Java is Object Oriented Programming language while JS is Object Oriented Scripting language.

2. Java is strongly typed unlike the JavaScript.

I'm not sure if you really want to know all the technical differences; but that'd be pointless. The best analogy I could come up with is Java : JavaScript :: Car : Carpet 😐

I hope this answers your question.
2.7k views

Related Posts

@Sindhu Chowdary · Jul 2, 2013

C language is a platform independent programming language. Platform dependent language means that the code or the application will run under only one operating system.Does it mean that the C...
17.9k views

@Kaustubh Katdare · Mar 6, 2011

There are so many motorcycles in Indian market that it's always difficult to choose the best one. Why not collect first hand information from all our CEans about the best...
5.5k views

@avii · Feb 23, 2012

Lately I have been reading lots of experiences working in Indian IT companies. All of these are service based & which are majority in taking up grads in campus jobs...
10.6k views

@Janaa karti · Feb 8, 2014

By using what type of magnets do we bring magnetic field in ceiling fan? Is it Electro or permanent? If it s electro, then can we use permanent magnets to...
4.4k views

@Ankita Katdare · Oct 4, 2013

If you are running a Google PageSpeed test on your website, chances are that you have landed up on a suggestion from Google that you need to eliminate render blocking...
2.9k views