I like Platform independent in the case of Java means that Java programs are completely independent of the operating system on which you run them. When you write a Java program, it can run on Windows, Linux, OS X or any other operating system without any changes or need to recompile the code as long as there's a Java runtime environment available for the operating system.
Portable means that you can recompile the source code of a program to a platform-specific executable without changing the source code itself; you just need to compile it. The resulting executable will only work on the specific CPU type and operating system that you have compiled it for. You can't easily create a version of your program that would run on an Apple Mac, for example, because the Windows API that you used doesn't exist there.
Also in Java it's possible to write programs that are not platform independent. But it is always open for discussion. Actually and logically, any program needs a platform installer can't be considered as platform independent.
For example, if I can't run Java executables without downloading and installing java runtime packages services etc So how we can say that it is platform independent. Aah, sure not Hope you got the logic. But what we can do is, we can compile our own softwares for many different OS's.
So our software will be "cross platform". What can be platform independent in real manner is as I wrote in top, my opinions Uncompiled assembly, C etc codes And when it comes to portable, this is something else. For example, the word "portable software" under "windows" operating system means;.
But actually you can just ignore the last detail since this criteria is not mature yet to be accepted by all. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Java programs are only intermediately compiled, which allows adaptation to the given environment it needs to run in later. An example of a portability issue is the creation of Unix.
The first version was not portable. It was specific only to that computer's architecture. Unix became portable when it was rewritten in C. The new version written in C was portable because C served as a "translator", if you will, between what underlying architecture or devices were physically in the computer and what unix wanted them to do. Portability and platform independent refers to the ability of a program to run on any machine without having the supporting language on that system.
It is not at all necessary to have that language in which the program is developed on the system on which that program is running. For Example: programs developed in java are stand alone and platform independent it is not essential to have jdk installed on the system to run the program developed in java. Fusion Team. Internet Speed Test. Remote Control. Business Technologist. Sign up for the latest insights, delivered right to your inbox. Work Email Person Type.
Contact Information All fields are required.
0コメント