- 3
What is the difference between java and javascript?
And please tell the usability of both with compare of each
5 Answers
+ 4
Hi @Ishan! I was once a total beginner, and believe me, I asked myself this question too. You've got some great and detailed answers already but I'll leave you an image that summarizes it âș:
https://goo.gl/images/aJZz3n
Also, please allow me to add something regarding the previous sarcastic comments: Over time we internalize this sort of knowledge and get to know it so well like the palms of our hands, it becomes so basic to us that we tend to forget how it was to be a beginner and we forget to be patient with them. Please forgive the community when you recieve these kind of condescending answers, they don't mean to make you feel bad, they are just a little bit tired to answer the same questions all over again, though it is a good practice to ask Google first or search in SoloLearn's Q/A, just don't take their comments personal âș
+ 3
Hmmm.... should I be a sarcastic asshat or should I just answer this question for the 50th time this week. Lets mix it up.
Is your google or courses button broken? It amazes me that people want to program, but they can't do something as simple as look up the language they're inquiring about and then read about it. You took time to learn English, but you can't look up what Java or JavaScript is? You even took time to type out this question, rather than look it up.
Okay. I got that out of my system. So, to answer your question, they're not related at all. JavaScript is a programming language for the internet (mostly), and on a vanilla framework, it's client-side only. If you're using NodeJS run-time on your server, it can also be used as the server-side scripting language as well.
Java is a separate programming language all by itself. It can be used to make many things, from desktop applications to web apps to mobile apps, etc... It's one of the more popular languages today, and their platform is one of the most used on devices.
https://en.wikipedia.org/wiki/Java_(programming_language)
https://en.wikipedia.org/wiki/JavaScript
I'm like a sour patch kid. First I'm sour, then I'm sweet. You're welcome. <3
+ 3
@Ishan Kumar
Hahaha. You may be right about that. ;) You're more than welcome bro, and hope that helps you get pointed in the right direction.
If you're seeking to be a web designer, I'd go with JS and then learn its other frameworks (NodeJS, AngularJS, jQuery) as they expand upon the vanilla language and make it a lot easier / more functional. If you're going with software development, or even web apps, then Java may be more your thing.
+ 1
They are completely different languages. The key difference between them, Java is an object oriented programming language and, JavaScript is an object oriented scripting language. You need to compile a Java code, and you'll get a class file which will contain the instructions for a virtual machine, known as JVM or Java Virtual Machine, and JVM will run your code. For JavaScript, you will have your codes in a file and mainly the codes will run in a browser, but now you have node.js and a lot of different flavors of js and the possibilities are skyhigh. It's pretty impossible to point out each differences because they are completely different. Java is to JavaScript as ham is to hamster.
I can refer you to this link:
https://stackoverflow.com/questions/245062/whats-the-difference-between-javascript-and-java
check the answers and not just the selected best answer.
0
@Netkos ent thank you for the answer asshat and if you have answered this question for 50th time today then get a life my friend .. because just being here and crying about why people asking dumb questions is not gonna solve your problem.. so logout and live a life... anyways thanks for the answer .. and I am always sour and like to share what I felt with your frustrated start of the answer.. Peace Out :)