+ 2

what is Java and Java script

20th Sep 2016, 4:05 PM
sanchit mishra
sanchit mishra - avatar
8 ответов
0
Hi, you may be confused by the term "Java" in both, but you must know that they are two different langage. Concerning the answer of Constant Missa, both langage are object oriented, I can't figure out how you can say JS is not Object oriented, as almost all what you write in Js is part of the document object, not to mention all the global method ecetera. You have to read some introduction concerning Java and the jvm, to see the differences between Java and all other programming langage. Again, concerning the answer of Constant Missa, Java is not difficult to learn, the abundance of learning materials, books, videos ecetera around Java made the learning curve relativly fast. Think about Java and JS as totally different langages is the best thing to do if you are confused
21st Sep 2016, 12:03 AM
ADEL MAHJOUB
ADEL MAHJOUB - avatar
0
ADEL, what do u understand about obeject oriented language ???
21st Sep 2016, 12:11 AM
The Hardworker
The Hardworker - avatar
0
Constant missa, I may only understand the basis, but I'll post here from where I get what I wrote about JS and Object Oriented.
21st Sep 2016, 12:15 AM
ADEL MAHJOUB
ADEL MAHJOUB - avatar
0
Constant missa http://www.w3schools.com/js/js_object_definition.asp mention : "In JavaScript, almost "everything" is an object"
21st Sep 2016, 12:18 AM
ADEL MAHJOUB
ADEL MAHJOUB - avatar
0
ADEL how do you create an object named "foo" un JS ? let me help u : fonction foo(){ // content } as u can see, JS use some way to do oriented object programming but there is no class concept un JS a language which have all its type as object is notre object oriented for this cause
21st Sep 2016, 12:33 AM
The Hardworker
The Hardworker - avatar
0
Constant I was learning java years ago (and shamefully stopped for some reasons) and true, we can create classes and prototypes, add proprities methods, setters, getters, constructor, create prototypes ecetera, Now I see, so we cannot create classes in JS ? It means we use objects in JS but we cannot create classes, that makes JS a non object oriented langage. Now I understand, thank you.
21st Sep 2016, 12:43 AM
ADEL MAHJOUB
ADEL MAHJOUB - avatar
0
The let me tell the basic difference Java is pure object oriented programming languages whereas JavaScript is a Scripting language. Java is a combination of compiled and interpreted language but JavaScript is just an interpreted language.( Java code is compiled to bytecode which is then interpreted, bytecode is what makes Java platform independent) Java is used for both Software and web platform ( both in frontend and back-end) whereas JavaScript was developed as a client side Scripting language ( frontend) but now with the rise of Node.js and Google v8 js engine JavaScript is gaining popularity as both front-end and back-end choice of language. JavaScript is basically a glue language which works on top of c/c++ modules but the same is not true for Java. I hope that this will clear your question about differences between Java and JavaScript.
21st Sep 2016, 6:16 AM
Kishan Kumar
Kishan Kumar - avatar
- 1
the difference between those two language is on syntaxe basicly, they are programing language however they are different on some syntaxes On the web, JavaScript is most used for front-end, java is most used for back-end but this last is not a deffrence now cause JavaScript is now used for back-end with node JS note that java is very powerfull than JavaScript and not easy to learn finnaly i think that the main difference is that java is object oriented but JavaScript is not
20th Sep 2016, 10:49 PM
The Hardworker
The Hardworker - avatar