Cross-platform Java language
Cross-platform programming language is the availability of a compiler for various platforms, which allows you not to rewrite the program code completely and only change the system-dependent parts of the code.
Java is a cross-platform strongly typed object-oriented programming language.
Properties of the cross-platform Java language
- the independence of the bytecode from the operating system and hardware, allows you to execute bytecode on any device for which there is a virtual Java machine.
- Flexible security system, program execution is controlled by a virtual machine.
Using Java to develop on the Credits platform
Cross-platform Credits is based on the use of Java. The Credits Desktop Wallet application allows you to enter the code of programs in Java.
Java Virtual Machine (JVM) processes the bytecode of the Java program and passes instructions to the hardware as an interpreter. The program to run on the JVM is compiled as a ".class" file. To facilitate the placement of large programs, some files of the ".class" type can be packed together in a ".jar" file. The JVM virtual machine executes ".class" and ".jar" files, emulating the instructions in them. To improve performance, JIT is used to compile frequently executed bytecode fragments into machine code.
JVM can be used to execute programs written in other programming languages. The source code in the programming language is compiled into the Java bytecode, which is then executed using the JVM.
Advantages of using cross-platform language
The advantage of this way of executing the program is cross-platform, which allows executing Java-applications on any device and operating system without preliminary recompilation.