Click here to Skip to main content
14,328,292 members
Rate this:
Please Sign up or sign in to vote.
See more:
I heard about it that i can write once and run everywhere using Java.
Is it true? Yes or no?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Yes and no. In theory a well written Java program will run on any system that has a Java VM. In practice it may not always work.
Ziya1995 1-Jan-15 5:51am
So, i can not write a pretty good app on Java to run it on any operation system in the world? It is not worth any time, right?
Richard MacCutchan 1-Jan-15 5:58am
You can if you are careful to use only pure Java, and nothing that is specific to any particular operating system. But the chances of your app being adopted by every manufacturer of every product in the world is so small that it is not something that need concern you.
Ziya1995 1-Jan-15 6:39am
In other words the app's quality will be very low, right?
Richard MacCutchan 1-Jan-15 6:53am
Not at all. The quality of an application is measured by its usefulness and usability. You can create an application that will only run on one single platform which could be considered of the highest quality.
Ziya1995 1-Jan-15 6:57am
No, you didn't get me, i mean the performance of the app written in pure Java to run on any operation system is very very low in compare to what is written for a single platform using its features.

Richard MacCutchan 1-Jan-15 7:01am
No, because Java runs inside the Java Virtual Machine so the performance tends to be much the same on all platforms. And with the speed and capacity of modern computers this is less of an issue than it was 10 or 20 years ago.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100