Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Key Differences between Java and Javascript  RSS feed

 
Jack Ryu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hear that both languages can be used to make websites but I was wonder what is the difference between these two languages. I know that JavaScript was called Livescript before ti got the name JavaScript and that Java is a object orientated language. One thing I was wondering about for Java is what exactly is an Applet? Which language would be the most useful to learn if you want ot become a web programmer? I actually like both languages but I am more familiar with JavaScript as of now. I know I have a while to go before I can figure out everything I need to but with enough practice I think I can figure them both out.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except for a passing similarity in base syntax, and a poor choice of naming, Java and JavaScript have little to nothing in common.

Applets are a dead and obsolete technology, so you don't need to concern yourself with them unless you are charged with supporting a legacy applet.
 
Stephan van Hulst
Saloon Keeper
Posts: 7808
142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As for making websites, it really depends. The two languages are used for different things: JavaScript is mostly used for the client-side of web applications, while Java can be used for the server-side. But you can also make websites without using either of the two languages.
 
Campbell Ritchie
Marshal
Posts: 55717
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An applet is a small fruit small application in a small window on its own. As Bear has told you,nobody writes Java® applets any more and there is probably no point in leaning about them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!