I am acquisition the instance of Java. Deserve to I run a Java application on Linux that developed on windows platform? Or the reverse?

Can I use a exact same (or exact) programming algorithm top top both operation systems?

In my view file Types space platform independent prefer Videos, Images, documents etc.

You are watching: What does it mean for an app to be platform independent?


*

*

Platform freedom in software way that you can run the same code with little or no modification on lot of platforms.

The evil one is in the details:

It depends on what you define as "the platform". In part cases, this might be a certain hardware device configuration. In various other cases, it may be a "generic PC". In various other cases, it may be a virtual device and run time setting (which is the situation with Java).There are always some constraints on details platforms that cannot it is in ignored. Instances are things like the maximum length of filenames or the accessible RAM on a system. No matter how much you try to be platform-independent, her code might fail if you try to operation it ~ above a platform the is as well tightly constrained.It"s vital to keep in mind that part languages are platform-independent in ~ the source code level (C/C++ is a great example) yet lose platform independence once the password is compiled (since indigenous code is platform-specific). Java maintain platform independence also after code is compiled due to the fact that it compiles to platform-independent bytecode (the actual conversion to indigenous code is tackled at a later time after ~ the bytecode is loaded by the JVM).There room occasional bugs in language implementations the only happen on particular platforms. So even if your code is theoretically 100% portable, friend still should test that on different platforms to make certain you aren"t to run into any unusual bugs!

In the particular case that Java:

Java code is platform-independent in the feeling that the very same Java applications or algorithms (typically compiled come Java bytecode and packaged in a .jar file) will certainly run identically ~ above Windows and also Linux.

Java libraries (e.g. Every the nice open-source toolsets) are usually platform-independent, as long as they room written in pure Java. Many libraries try to stick through pure Java in order to preserve platform independence, but there space some cases where this is not possible (e.g. If the library needs to interface directly with a unique hardware or speak to a C/C++ library the uses indigenous code).

The JVM itself (i.e. The Java Virtual maker that is responsible because that JIT compiling and also running Java bytecode) is platform-independent in the sense that that is accessible on numerous platforms (everything native mainframes come mobile phones). However specific execution of the JVM are needed for each underlying platform to take account of various native instruction password and machine capabilities (so girlfriend can"t run a Linux JVM top top Windows and Vice Versa). The JVM is packaged as part of the Java platform/runtime atmosphere as above.

See more: How Many Loaves Of Bread From A Bushel Of Wheat, Wheat Facts

Overall, Java is probably about as close to true platform self-reliance as you can get, yet as you deserve to see over there is still quite a bit of platform-specific work-related done under the hood.

If friend stick to 100% pure Java code and libraries, my suffer is the you deserve to count on Java as being "effectively" platform-independent and also it generally lives as much as the Write when Run everywhere promise. But you should still check it!!