The real reason for anxiety

This fear you are experiencing might actually be something good. It might be a warning signal you should not ignore. Or do you simply fear that your dream might never be realized at all because you…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Machine Independent Vs Platfrom Independent

Platform Independent — (Portability)
As JAVA is the one of the most popularly known Platform Independent Language known across worldwide.
Platform Independent means that- You write your code once and you can run it multiple times, on any machine (either same or different) i.e. WORA (Write Once,Run Anywhere).
In Platform Independent Languages you get the ByteCode (.class file) instead of executable code(.exe file).
In case of JAVA, the source code (the code written by user in High Level Language) goes to the compiler (Java Development Kit) (compiler - which converts the High Level Language Code into the Machine Level Language Code, that the machine can read the code easily) and gets converted into the ByteCode.
The ByteCode is the only code that you need to run on any machine.
Once you get the ByteCode you can run it on any other Machine.
The ByteCode is not the Executable Code, to execute it the machine should must have the JVM(Java Virtual Machine, it is inside the JDK) installed on it.
The JVM interprets the ByteCode and executes it.

Note — The JAVA is the Platform Independent, but the JVM is Platform Dependent, because the JVM is different for different achitecture and different OS (JVM is different, is can be verified when you goes to download it from the website, it will give you the option that for which achitecture or OS you want to download it).

Machine Independent — (Cross Platform)
As C++ is one of the most popular Machine Independent Language known across worldwide.
Machine Independent means that you can write your code once and you can run your code on any other machine multiple times , but the main point is that your another machine should also have the same architecture and OS as on which you have compiled the source code.
In Machine Independent Languages you get the executable code(.exe file) instead of ByteCode(.class file).

Add a comment

Related posts:

The Banality of White Supremacy

On the left is Steven Thomas Druckenmiller, son of Kevin and MaryAnn Druckenmiller of Fremont, Ohio. He is a licensed attorney who, as of last year, was working for the Department of Justice in…

Four Life Lessons From BeReal

But what I expected to be another fad app — something equivalent to Pokémon Go or House Party — has become a new favorite of mine. It’s quickly becoming one of the most downloaded apps, defining…

Information Gathering With NMAP

Information gathering is a stage taken by a hacker or penetration tester in conducting penetration tests. In this stage, hackers are required to find information about the victim. NMAP stands for…