+ 1

Why java is said to be more secure language than c?

26th May 2018, 3:50 PM
vigneshwaran .S.
vigneshwaran .S. - avatar
3 Answers
+ 1
JVM is an interpreter which is installed in each client machine that is updated with latest security updates by internet . When this byte codes are executed , the JVM can take care of the security. So, java is said to be more secure than other programming languages
26th May 2018, 5:56 PM
MsJ
MsJ - avatar
+ 1
Here are some reasons on why java is secure than C: Java's security model is focused on protecting users from programs downloaded from sources across a network. Java programs run in Java Runtime Environment. For example, Programms are prohibited from many activities, including: Reading or writing to the local disk , Making a network connection to any host, except the host from which the applet came ,Creating a new process , Loading a new dynamic library and directly calling a native method The Java compiler catches more compile-time errors; other languages (like C++) will compile programs that produce unpredictable results.Java does not allocate direct pointers to memory. This makes it impossible to accidentally reference memory that belongs to other programs or the kernel Hope this helps you! Read More:- http://crbtech.in/Java-Training/java-considered-secured-language/
28th May 2018, 5:37 AM
pranit patil
pranit patil - avatar
0
can you elaborate it?(with example)
28th May 2018, 2:56 AM
vigneshwaran .S.
vigneshwaran .S. - avatar