Skip to main content

Command Palette

Search for a command to run...

Java vs. JavaScript

Published
2 min readView as Markdown
Java vs. JavaScript
O

I am a software engineer, with foundations on Java, python,Javascript, HTML, CSS , mySQL and Android

What's the difference between java and javaScript? Java and javaScript are similar the same way car and carpet are. Experienced developers know that the programming languages Java and JavaScript have significant differences. For newer developers, questions about Java and JavaScript’s use are common.

Dynamically or statistically typed.... JavaScript is high-level, often just-in-time compiled, and dynamically typed.Dynamic typing means variables(containers) or values are checked at execution time. This allows for faster coding but means errors are often caught later in the development process. Java on the other hand is a statically typed programming language whose characteristic in which variable types are explicitly declared and thus are determined at compile time.With static typing, variables are known when code is compiled. This means errors can be caught early in development.

OOP and OOS...... Object-oriented programming is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields, and code, in the form of procedures. Java is a class-based, object-oriented programming language which implies code is first compiled before it can be executed. JavaScript also uses an OOP approach, but it is a scripting language. This means there is no explicit compilation required before JavaScript code can be executed.

Also take note: JavaScript Runs in a web browser or the Node.js runtime environment but Java Runs in a Java virtual machine (JVM) .

P

Java is an object-oriented programming language and have virtual machine platform that allows you to create compiled programs that run on nearly every platform whereas JavaScript is a scripting language that helps you create interactive web pages.

  • You should consider Java if your project involves…

Android Apps

Enterprise Software

Scientific Computing

Big Data Analytics

General Purpose Programming of Hardware

  • You should consider JavaScript if your project involves…

Dynamic single page applications (SPAs)

Front-End technologies like jQuery, AngularJS, Backbone.js, Ember.js, ReactJS etc.

Mobile App Development through PhoneGap, React Native, etc.

2