J
James Kanze
James said:[...]That's not true. There are contexts where the fact that theC++ can be used anywhere Java can,
compiled code can run on a machine you've never heard of is an
advantage, or even a necessity, and you don't need a high degree
of reliability.
If Java can run on it, it has a JVM which is written in ...
And an OS written in ... And if I use C++, the C++ compiler
generates ...
Who cares? That's not my problem.
FWIW: I generally use C++, and don't think that Java is at all
appropriate for what I do. But my choice is not based on any
absolute rule, and there are contexts for which C++ is not the
language of choice. (While I don't use Java in my work, I do
make extensive use of shell scripts, for example.) The
statement "C++ can be used anywhere Java can" is, from one point
of view, vacuous. From a theoretical point of view, they're
both Turing complete, and any program that can be written in
one can be written in the the other, so yes, C++ can be used
anywhere Java can, and Java can be used anywhere that C++ can.
in addition to Turing completeness have to be taken intoFrom a pratical point of view, of course, any number of issues
account, and the result is that there are places where Java will
be suitable, and C++ not, and vice versa.