I was reading "Teach yourself Java 1.2 in 24 hours"
and it said that java was a DOS language..
and it shows some examples of running DOS programs....
isnt java an applet driven language?
or am I just utterly confused????
:confused:
Printable View
I was reading "Teach yourself Java 1.2 in 24 hours"
and it said that java was a DOS language..
and it shows some examples of running DOS programs....
isnt java an applet driven language?
or am I just utterly confused????
:confused:
Applets are a special type of Java program. They are limitied in what they can do and you do somethings differently. But you can also use Java to create regular applications that can be command line or graphical.
Java is intended as a universal language, but yet over the years there have been compilers made to compile java code into a native executable, like VJ++ for example can compile java code into a windows app, but the intention of java whether a java app, or java applets, as long as the machine, no matter which operating system, no matter what kind of CPU , as long as it's running a java virtual machine, you can run your java code on that machine, following the basic rules(most of which are enforced in the compiler) for starters you cannot have direct access to the user's file system or memory, and you cannot alter anything outside of the virtual machine, they're is more detailed restrictions, but the basic idea of java is to Compile Once, run anywhere.
Acually when you are running a Java application their are not as many restrictions as an applet. A Java application can read and write files and make network connections just like anyother program. An applet can get more access to the system if you sign it.
With Java 1.2 and above (at least) you can set specific permissions for applications from different sources as to what they can/can't do.