What is different of java & javascript

 What is different of java & javascript 


Java and JavaScript are two different programming languages that have some similarities, but they are primarily used for different purposes.

Java is a high-level, object-oriented programming language that is widely used for building enterprise applications. It is a compiled language, which means that it is transformed into machine code that can be run on any device that has a Java Virtual Machine (JVM) installed. Java is known for its strong type checking and its "write once, run anywhere" capability, which means that Java programs can run on any device with a JVM.

JavaScript, on the other hand, is a scripting language that is primarily used to add interactivity to web pages. It is a client-side language, which means that it is executed by the user's web browser rather than on a server. JavaScript code is usually embedded in HTML pages and is used to add dynamic elements to web pages, such as drop-down menus, pop-up windows, and form validation.

Despite the similar names, Java and JavaScript are quite different and are used for different purposes. Java is a general-purpose programming language that is used to build a wide range of applications, while JavaScript is primarily used to add interactivity to web pages.

Comments

Popular posts from this blog

What Is The Best Camping Sites In Sri Lanka?

What are the best drinks in the world?

What is the chatgpt?