Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between java and JavaScript

 
Sakshi Jaine
Greenhorn
Posts: 16
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a beginner in java.
What I have learnt is that while programming one has to first design the programme and then add functionality to it(like add functionality to buttons).
Is this JavaScript or Java?
Also I cannot find this in any other book.😯

 
Tim Cooke
Sheriff
Posts: 3450
163
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java and JavaScript are completely different programming languages. The only similarity is in the unfortunate choice of name.
 
Swastik Dey
Rancher
Posts: 1721
8
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sakshi Jaine wrote:one has to first design the programme and then add functionality to it(like add functionality to buttons).
Is this JavaScript or Java?


It depends what you are designing.  If it is a web page you and if you are implementing the add functionality at the client end, you have to use java script
 
Campbell Ritchie
Marshal
Posts: 53112
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript, despite the popularity of the term, isn't actually a language. It is one supplier's implementation of the ECMAScript specification. Nashorn is another such implementation.
 
Sakshi Jaine
Greenhorn
Posts: 16
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So can we use the same application(like NetBeans ) for both Java and JavaScript?

 
Swastik Dey
Rancher
Posts: 1721
8
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sakshi

Netbeans is an IDE in a simpler language sort of an editor that allows you write and compile java codes.  If you are writing any web page using netbeans and it has any java script code embedded, this code will not be compiled by netbeans.  Remember javascript code is interpreted by the web browser when it's executed on browser.
 
Sakshi Jaine
Greenhorn
Posts: 16
Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Swastic Dey
 
Swastik Dey
Rancher
Posts: 1721
8
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!