Java vs Javascript

Hello, how are you doing? well i am fine indeed.On my last post we just made ourself another version of movingBall program, it’s the same movingBall program but written in different programming language. We made ourself 2 movingBall program, first one in Java and second one in Javascript, well now it’s time for us to take a look at pros and cons from both Java and Javascript. First I apologize if there is any mistake, any help or knowledge would be nice. Lets be done with the chit-chat and lets begin.

First let’s get the definition of both Java and Javascript, Java is an Object Oriented Programming language while Javascript is an Object Oriented Programming Scripting Language. Both of them are an OOP language but there is a difference, Javascript is a OOP scripting language and what does that means? a scripting language is a programming language that supporst script, program written for a special run-time environment that automate the execution of somekind a task that alternatively can be executed one by one with human operator. An environments that can be automated through scripting is, software applications, web pages within browser, and some numerous numbers of games.


Java is a compiled programming language, it is typically written in an Integrated Development Environment (IDE) and compiled into a bytecode, bytecode is not readable for human language and any Java Virtual Machine could run it. Javascript is a programming language that is Interpreted rather than Compiled, an Interpreted programming language is a programming language that execute the instruction directly, without previously compiling it into a machine-language. Javascript may be easier to create because it doesn’t need to be compiled and deployed like Java, Javascript sometimes can be just created by using a simple text editor like notepad++

Both of java and javascript can be runned inside a browser, in modern browser they obviously take advantages to enhance’s the users experience.Java applet can also be runned in browser, but it have been declining in it’s popularity for various of reasons, first it’s compatibility issues even to security reasons. It is been widely common for a website visitors that it’s javascript is enabled and it is also widely common for a website visitors that it’s Java applet is disabled, especially in mobile browsers.

In javascript you need to send it to the internet first or to your browser first to get the program works, but Java can create a standalone application that doesn’t need any other intermediary to run it, it works on it own. The standalone application is called a Java “applet” (so-called like that because it is a little application) that is a fully contained program. While javascript can only be runned in Javascript with the help of Html and CSS.

Each of them had their own pros and cons, you should pick one programming language that suites you heart, the one that you get comfortable with. Well you could learn both of them but after that choose one that you’ll go deeper with.

Conclusions:

  • Java is an Object Oriented Programming language
  • Javascript is an Object Oriented Programming Scripting Language
  • a scripting language is a programming language that supporst script, program written for a special run-time environment that automate the execution of somekind a task that alternatively can be executed one by one with human operator.
  • Java is a compiled programming language
  • Javascript is a programming language that is Interpreted
  • A compiled programming language is a language that compiles codes into machine-language
  • Both of java and javascript can be runned inside a browser
  • Java can create a standalone application that doesn’t need any other intermediary to run it

One thought on “Java vs Javascript”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.