Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What's the difference of core Java to JavaScript and Java Beans?

hint one of them is used only in web based systems but the other is in Visual programming /Graphical User Interface

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2014/03/31
Salman Khan
par Salman Khan , Web & Mobile Application Developer , Cennest Technologies

I won't say that one is programming language and other is scripting language, because the difference is beyond that. Java is a cross platform, compiled language which means, once written the Java code can be used on any platform like Windows, Mac OS & Linux. The Java code gets compiled into bytecode which is a intermediate form of code which is again compiled into machine code by the Java virtual machine. Java is used for development of large complex applications and is the heart of android programming. Now coming to Javascript, it's a language which runs in browser and is mostly used to animate web elements and asynchronous calls to web service.Nowadays there's hardly any difference left in Java and Javascript because what you can do with Java, you can do the same with Javascript. For example :

  • Javascript can be used to develop mobile applications (Phonegap). 
  • Javascript can be used as a server side language (Node.js).
  • Javascript can be used to host RESTful web service (Express).
  • Javascript can be used to bind web elements with data (AngularJs)
  • Javascript can be used to create chat server (Socket.IO)

So the difference only lies in your requirement. You have to decide which technology to use according to your requirements. Hope this answers your question. Thanks

Angelo Endaya
par Angelo Endaya , Maximo Application Developer , IBM Solutions Delivery Inc.

  • Java is an OOP programming language while Java Script is an OOP scripting language.
  • Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.
  • Java code needs to be compiled while JavaScript code are all in text.
  • They require different plug-ins.

JavaBeans are they are classes that many object you can define.

More Questions Like This