Hi Ankit,
I totally agree with your points @
x BlueRobot, it is not a big matter which is the best programming languages you need to make your career, On which you are familiar or on which you have the best experience or best basic skills.
About the differences, Here I am going to list down them:
Both the language is written, executed and assembled in a different manner.
Java is used for Android apps development, Credit card programming, and creation for desktop applications and web enterprise applications whereas Javascript is used to make a web page more interactive. Javascript has more functionality as compared to the flash, So people are using it in place of a flash.
Java is used for server-side development whereas Javascript is used for developing client-side server scripts for Validation and Interactivity.
Java code must be compiled, and JavaScript code is all-text.
Each language requires different plug-ins.
JavaScript code is run on a browser only, while Java creates applications that run in a virtual machine or browser.
Java is an OOP (object-oriented programming) language, and JavaScript is specifically an OOP scripting language.