Difference between Java and Javascript

Before looking at the differences, Let us see what these languages are.

About Java

Java is an object oriented language designed and has always been a full-stack language used in a variety of applications such as Desktop, Web, Enterprise, Embedded, Mobile and Batch applications. Java has inspired quite a lot of languages such as Groovy, Scala, Clojure, Kotlin and has its influence on JRuby and Jython. Android has its syntax similar to Java.

About Javascript

Javascript is a object based scripting language and has some syntactical similarities with Java. Javascript started its life as a client side scripting language to do client side validations, client side UI elements hiding, display and updates. It then grew to support Ajax asynchronous features giving rise to frameworks and tools such as Jquery, Prototype and Dojo. It currently has become a full-stack language supporting both client side and server side development with Node.js, Express.js, Angular.js, Vue.js and a lot of other JS packages.

Java Javascript
Java is an object-oriented language. Javascript is an object based script based programming language
Java is an statically typed language. Javascript is a dynamically typed and loosely coupled language
Java program is executed by the Java Runtime Environment. Javascript is executed by the browser or a javascript engine
Java inheritance is achieved by parent class extended by child class. Javascript inheritance is achieved by reuse of prototype objects
Java code is compiled to bytecode and then bytecode is interpreted during execution. Javascript code is interpreted.
All Java classes are subclasses of 'Object' class. Java objects or instances are created from Java class. All Javascript objects inherit from Object.prototype

Popular Java Servers:

Tomcat, JBoss, Weblogic, Websphere

Popular Javascript engine:

Node.js, V8

Popular Java Frameworks:

Spring frameworks, JSF, Hibernate, Vaadin, Grails, Struts, Struts 2

Popular Javascript Frameworks:

Express.js, Angular.js, ReactJS, Vue.js, Ember.js, Meteor.js

Popular Java testing frameworks:

JUnit, TestNG, Arquillian, JWalk, JTest,JWebUnit, PowerMock, Cactus

Popular Javascript testing frameworks:

Mocha/Chai, Jasmin/Karma, NightWatch.js, JSUnit, QUnit

Java mocking tools:

Mockito

Javascript mocking tools:

Sinon.js

Java Performance and Load Testing Tools:

Apache JMeter, The Grinder, GATLING, Apache JMeter, Taurus

Javascript Performance and Load Testing Tools:

Sinon.js, Artillery, K6

Java profiling tools:

JProbe, JProfiler, VisualVM, GCViewer, JRockit-Mission Control, Eclipse Memory Analyzer, Java Interactive Profiler, Profiler4j

Javascript profiling tools:

Firefox developer tools-Waterfall,Call Tree,Flamechart, Chrome DevTools

Java IDEs:

Eclipse, NetBeans, IntelliJ Idea, BlueJ, Oracle JDeveloper, JBuilder, MyEclipse, RAD

Javascript IDEs:

WebStorm, NetBeans, Eclipse IDE for Javascript, VS Code, Komodo, Visual Studio 2013, Atom, Sublime Text, Vim, IntelliJ Idea, NeoVim, SpaceMacs, Brackets, Emacs