+ 1

What is the difference between java and JavaScript?

I would like to know because I might do java as well.

21st Nov 2016, 2:31 PM
Ben
Ben - avatar
5 Answers
+ 3
Java and Javascript have virtually nothing in common. Java is an Object-Orientend Programming (OOP) language designed for making applications compatible with any computer running the Java Virtual Machine (JVM). Java is used, and meant to be used, to write immensely large and complex software. Javascript is meant to write small scripts. These scripts originally were, and still are, run by web browsers. This allowed websites to become more dynamic. Over time Javascript evolved into a language used to write entire web applications, merging front-end and back-end. Syntax-wise the two are similar, mostly because they both look a lot like C. All in all, the main difference is what the two languages are used for: Java for large software and Javascript for web applications. Of course you can create a web application with Java (using JEE) or a non-web application with Javascript (using NodeJS), but that's not what they were originally meant to do. If you already know Javascript, don't expect Java to be the same. It isn't. At all. It's a very complex and powerful language. If you write Java like you would Javascript then you're going to have a very bad time.
21st Nov 2016, 3:02 PM
Arthur Busser
Arthur Busser - avatar
+ 1
Well if u r familiar with the basics of Java U might find many similarities in Java script example the for loop while loop do while loop switch etc but java and js are different js is client side script language mainly used in web app development. while Java is a programming language based on object oriented programming. java is further used in Android development to create interesting apps and simple interactive games at basic level. so both are different but while writing certain code snippet may seen similar.
22nd Nov 2016, 6:33 PM
Lokesh Sajwan
Lokesh Sajwan - avatar
0
Java language is more difficult then java script. On Java you can write anything that support JVM (Java Virtual Machine). Java script basically use on client-side web sites, at the moment JS use for more tasks, such as web-server, rendering sites etc.
21st Nov 2016, 2:48 PM
Павел Степанченко
Павел Степанченко - avatar
0
JVC2JVM
21st Nov 2016, 11:33 PM
Hao Ju
Hao Ju - avatar
0
ok
23rd Nov 2016, 5:50 PM
Carmen Canet
Carmen Canet - avatar