In message <
[email protected]>
Ian Rawlings <
[email protected]> wrote:
> On 2006-02-05, beamendsltd <[email protected]> wrote:
>
> > That's not the case - Java, as a whole, is not just the language, it
> > is the Java Virtual Machine, of which there should only be one, the
> > same on all platforms, with device drivers provided to access the
> > particular platforms architecture and OS services.
>
> C# is bytecode, as is java, both can be JIT compiled into native code.
> The Java Virtual Machine is a fancy way of describing an API that you
> call in order to perform things like I/O and GUI operations, java
> itself is a language with a set of classes that make up the "Virtual
> Machine", C# is a language that can be linked with an API that
> provides similar operations, .NET is microsoft's implementation, Mono
> is the subset that runs on other OSes including linux.
>
> Don't confuse Java with the JRE, Java is the language, JRE is the Java
> Runtime Environment which includes an extensive API that makes up the
> mis-named "virtual machine".
>
We'll just have to disagree on that, partcularly in the JVM being
mis-named!
> > A Java applet
> > is just a small program, known as an applet because, unlike C/C++,
> > Ada, Pascal etc etc, there is no requirement to set up a complete
> > application to run a simple program.
>
> A java application on the other hand is not, it's a fully-fledged
> programme just like one written in C/C++ apart from it needing to be
> bytecode interpreted or JIT compiled, like C#. I am running
> JBidwatcher on my linux box right now, it's a standalone app, not an
> applet. There is a difference between java applications and applets.
>
Definately not true - the beauty of Java it is indeed a program(let) in
it's own right, but it depends on JVM being present to work, whereas
a C++ program will run on a processor in its own right, having gathered
all it's resources at compile time, though it will obviously fail
if the OS is not present to handle device drivers etc. A Java program
will do nothing at all without the JVM being present, the processor
could do nothing with it - it would be like trying to execute a text file
as far as the processor is concerned. That's a huge difference.
Ricgard
--
www.beamends-lrspares.co.uk [email protected]
Running a business in a Microsoft free environment - it can be done
Powered by Risc-OS - you won't get a virus from us!!
Boycott the Yorkshire Dales - No Play, No Pay