Re: Code execution in JAVA
Portability:
One of the big advantages of Java is its portability. Portability means that your writing once work on a lot of different platforms, without requiring any code changes. Only the virtual machine that interprets the pre-compiled files undergoes changes. Thus, a Linux user can not download the same virtual machine a Windows user, only the code created by the programmer or (s) will give the same on both systems.
Developed in Java:
When you develop in Java, you will encounter two main types of files:
- Files with a. Java: These are simple text files that contain the Java code for your program. You can open these files with any text editor.
- Files with a. Class: These files are not directly editable. They are "compiled" by the virtual machine. The files that are interpreted by the virtual machine when you run your program.