|
| Total Answers and Comments: 7 |
Last Update: July 30, 2008 Asked by: selvarani |
|
| | |
|
Submitted by: aleemkh
Before talking about secure , let us compare the difference between C and Java.
First a C program is coverted as shown below
C(sourcecode) --> compiler---> compiles to binary (101010)---> OperatingSystem--->executes the program
As we can see the Operating system directly interacts with the binary file generatd by C compiler. If this binary file (which is .exe file) is infected with virus it will definetly effect Operating system
Now let us see in Java
java(source code) --> compiler---> compile to bytecode(.class file)--->JVM --->converts/executes to binary(001010)--->Operatingsystem--->executes
The Byte code goes through JVM and only JVM can convert byte code to machine readable form that is binary. The virus cannot go inside JVM and manipulate the binary. Immediately after the binary file is generated it is executed by Operating system and hence it is 100% secure
Above answer was rated as good by the following members: tmastanbabu, sujithkthomas | Go To Top
|