Bytecode
The key that allows Java to solve both the security and the portability problems is that the output of a Java Compiler is known as bytecode.
Bytecode is a highly secure set of instructions designed to be executed by the Java Virtual Machine (JVM). It is a translator for bytecode.
In the Java programming language, all source code is first written in plain text page or a file ending with the .java extension. Those source files are t compiled first into .class files by the javac compiler.
The Java launcher tool that runs your application with an instance of the JVM.
JVM(Java Virtual Machine) is available on many different operating systems, therefore the same .class files are capable of running on Microsoft Windows. Operating System: Linux, or Mac OS. Some virtual machines, such as the Java Hotspot Virtual Machine, perform additional steps at runtime such as finding performance bottlenecks and recompiling frequently used sections of code.
Java Versus
Java is a true Object-Oriented language while C++ is basically C with an Object-Oriented. Listed below are some major C++ features that were intentionally omitted from Java:
- Java does not supports the operator overloading.
- Java does not have template.
- Java does not supports the multiple inheritance of classes.
- Java does not supports the global variables.
- Java does not use pointers.
- Java has replaced the destructor function with the function.
- Java had no header files.
إرسال تعليق