Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

what is the difference between JAVA and Javascript ?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
can someone please tell me what is the difference between  JAVA and JS ( Java script  ) ?
 
Saloon Keeper
Posts: 6511
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch. They're both programming languages. Start reading at https://en.wikipedia.org/wiki/Java_(programming_language) and https://en.wikipedia.org/wiki/JavaScript
 
debs mahap
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,
i am new to  this forum , so  i am still getting used to  it .
just had a quick read for the links which you have sent me .
From what i  understand  JS (Java Script) is used with HTML and CSS documents
and java is just a separate programming language.

am i correct ?
 
Marshal
Posts: 69782
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Did they tell you anything about ECMAScript?
 
Tim Moores
Saloon Keeper
Posts: 6511
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, JavaScript is mostly used in web pages alongside HTML, DOM and CSS. But there is also a sizeable effort around server-side JavaScript (mostly in the form of node.js). If you're interested in client-side JavaScript, https://developer.mozilla.org/ is a great site for getting information.

I would disregard EcmaScript; most people do :-) Although it is a standardized form of JavaScript, it rarely matches what any given browser implements.
 
Sheriff
Posts: 7646
522
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@OP

And don't try to fight yourself which language to learn, which one is worth spending time on and which one isn't. Both languages worth knowing to some extent as they both have their use. However, principles behind the programming is what mostly matter, and they overlap a lot in both languages. Meaning if you can sufficiently write code in one, you would find yourself capable with some research to work with other language too.
 
debs mahap
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Yes. Did they tell you anything about ECMAScript?



yes it did. From what i understand  ECMA is a client-side scripting . it is different from java .

am i  correct?

just wondering  in this forum  do they also answer questions on HTML  or is it  just java ?
 
debs mahap
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:@OP

And don't try to fight yourself which language to learn, which one is worth spending time on and which one isn't. Both languages worth knowing to some extent as they both have their use. However, principles behind the programming is what mostly matter, and they overlap a lot in both languages. Meaning if you can sufficiently write code in one, you would find yourself capable with some research to work with other language too.



This is very useful info. thank you for  letting  me know.  i will keep it in my mind
 
Campbell Ritchie
Marshal
Posts: 69782
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

debs mahap wrote:. . . ECMA is a client-side scripting . . . .

Both languages are. As Tim told you, everybody uses JS rather than ECMAScript nowadays.

. . . do they also answer questions on HTML . . .

Try our HTML forum.
 
Saloon Keeper
Posts: 22254
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript can run on both web clients and web servers (for example, using Node.js). Java only runs on web servers - all attempts to provide Java on web clients have failed. Initially because Microsoft refused to support it, and then because the Java Applet system proved to be massively insecure.

The two languages both look similar the the C programming language, but they are quite different from each other. In particular, the available support libraries are mostly distinct except primarily for a few functions that worked so well in C that everyone steals them.
 
debs mahap
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:

debs mahap wrote:. . . ECMA is a client-side scripting . . . .

Both languages are. As Tim told you, everybody uses JS rather than ECMAScript nowadays.

. . . do they also answer questions on HTML . . .

Try our HTML forum.



ok thank you is there  any bootstrap forum that you can direct me to ?
 
debs mahap
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:JavaScript can run on both web clients and web servers (for example, using Node.js). Java only runs on web servers - all attempts to provide Java on web clients have failed. Initially because Microsoft refused to support it, and then because the Java Applet system proved to be massively insecure.

The two languages both look similar the the C programming language, but they are quite different from each other. In particular, the available support libraries are mostly distinct except primarily for a few functions that worked so well in C that everyone steals them.



understood . thank you
 
Campbell Ritchie
Marshal
Posts: 69782
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What sort of things would you discuss on a bootstrapping forum?

Questions about different fora may be moved to “Ranch Office”.
 
Sheriff
Posts: 15754
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:What sort of things would you discuss on a bootstrapping forum?


I imagine it would be about this Bootstrap: https://getbootstrap.com/
 
Saloon Keeper
Posts: 2618
127
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I updated your post title so that you can get good responses for your question. Hope that's fine with you.
 
salvin francis
Saloon Keeper
Posts: 2618
127
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One important difference I find between these two languages is that java is statically typed and javascript is not (If recall, that term is "dynamically typed". Not sure). In Java, a method is tied to a class and cannot exist by itself whereas that is not the case with javascript.
 
Tim Holloway
Saloon Keeper
Posts: 22254
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

salvin francis wrote:One important difference I find between these two languages is that java is statically typed and javascript is not (If recall, that term is "dynamically typed". Not sure). In Java, a method is tied to a class and cannot exist by itself whereas that is not the case with javascript.



Historically, a method not tied to a class has been called a "procedure" if it did not return a result and a "function" if it did return a result.

OOP is much newer than procedural programming, which was the paradigm for languages like Fortran and COBOL, so the term "method" is actually relatively new.

Then there's the word "instantiation", which I find incredibly ugly. I'd rather use the word "create" and don't get me started on "pro-active". People got by for centuries on being simply "active".
 
Ranch Hand
Posts: 127
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

debs mahap wrote:hello,
can someone please tell me what is the difference between  JAVA and JS ( Java script  ) ?


although not quite correct nor helpful - it's often easier to answer the question: what have Java and JavaScript in common? practical nothing aside from the name - and that JavaSript even got that name (before it was named ActionScript) was caused by it was a) inspired by it b) was a try to implement the java programming language as a scripting language into the browsers and c) in later time when java got its applets because both had a way of direct bi-directional communication.
So, to answer "what's the difference between them": basically anything but the name as it came from the now implied relation between them.
 
debs mahap
Greenhorn
Posts: 17
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

salvin francis wrote:I updated your post title so that you can get good responses for your question. Hope that's fine with you.



off course thank you
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic