Someone keenly noted - Java is not "platform independent", Java IS A
PLATFORM. Supporting multiple "platforms" is complicated.
That’s my saying since years. If you want to *try* Platform-Independant, you might try some easy C or BASIC code <g>
On Thu, Dec 3, 2015 at 2:50 PM, John R. Smith, Jr.
Would that be C, C++, C#, or objective C...and I'm sure there are variations in whatever version of C runs on whatever platforms as well.
C, C++, C#, and Objective-C are all different enough from each other
that they are considered different languages (not even different
dialects of the same language).
I agree with the point that even sticking with C is not particularly
platform independent. There is kinda-sorta such a thing as Holger's
"easy C" which will compile on *almost all* platforms that have a C
compiler. But this is a very small and rather impractical subset of
the C language. I would say the situation is even worse with Basic,
which doesn't have any widely recognized standard at all.
To Rob's original point which touched on the pain of the various JVMs
for i: The Java *language* has actually been quite good about
preserving compatibility with earlier versions. In principle, any
valid Java 2 source code is valid Java 5 source code. I would say
there is a *useful* subset of Java which is valid on essentially all
JVMs. Yes, of course the real world can get a little messy. But Java
code is without a doubt vastly more platform independent than C code.