GeekInterview.com
Series: Subject: Topic:
Question: 134 of 577

Why Java is secured compare with other languages? Explain with example.

Asked by: Interview Candidate | Asked on: Oct 3rd, 2007
Showing Answers 1 - 7 of 7 Answers

In Programming languages like C++ the memory management is handled by the user like deleting objects once the object is no more useful is the programmers responsibility.  Whereas in java its automatically done ie Garbage collection.Also java has eliminated pointers which can create a lot of unwanted and confusing memory references resulting in memory waste.

  
Login to rate this answer.
bhaskarrao

Answered On : Dec 2nd, 2007

View all answers by bhaskarrao

Another reason is byte code is executed under JAVA Runtime Environment. which has several Security related checking, (particularly when related to file access Programs). It is more secure.

  
Login to rate this answer.
matteti_kk

Answered On : Dec 4th, 2007

View all answers by matteti_kk

The main reason behind the java's security are ......1) no readability i.e., contains byte code understandable to only JVM2) no virus will infect the byte code. Even if the virus entered into byte code the jvm doesn't understand it, so jvm keeps these instructions as it is. No executable code will be generated to this virus.

Yes  1 User has rated as useful.
  
Login to rate this answer.
sampra

Answered On : Feb 11th, 2008

View all answers by sampra

Given reasons are enough

  
Login to rate this answer.

Java is more secured programing language, because Java byte code for this code virus cannot infect, It maintaines number of secure checking points but in other language which will be in the form of exe format, virus can easily infect the exe, img, bat files so Java is more secured programing languageRegards,Madhav 

  
Login to rate this answer.

First of all Java is Object Oriented Programing Language and Java supports
for Internet and Networking-based Applications, its is more secured then the
other languages like C, C++. Another reason is byte code is executed under JAVA
Runtime Environment. which has several Security related checking, . It is
understandable by JVM only. Regarding this very difficult to Trap the Internet
and Network based Applications by the Hackers, This is one of the reasons for
using Java
konnipati.sivakumar

  
Login to rate this answer.
aleemkh

Answered On : Jul 29th, 2008

View all answers by aleemkh

Before talking about secure , let us compare the difference between C and Java.First a C program is coverted as shown belowC(sourcecode) --> compiler---> compiles to binary (101010)---> OperatingSystem--->executes the programAs 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 systemNow let us see in Javajava(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

Yes  3 Users have rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.