answersLogoWhite

0


Best Answer

Java is considered more secure than other languages for several reasons:

  • 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.

My answer may differ

Java's security model is focused on protecting users from programs downloaded from sources across a network. Java programs run in Java Runtime Environment. Java Programs can't take any action outside those boundaries. 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

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

java needs a JVM for it's source code to be executed,which is independent of the system n works on any platform...

so,java codes cannot b executed elsewhere but only with JVM which provides no clue ab the code

By Pintu Debnath (Shyamnagar)

Some of the thing that makes Java more "Secure":

1. auto garbage collector

developer does not have to worries about a memory leak (most of the time - for dangling reference, etc). Java does the releasing of unreferenced object for you

2. hide pointer

Java hide pointer from developer. Allowing direct access to memory can be dangerus. Hacker can takes advantages of this to try to overwrite memory outside of application..or you accident overwrite th ewrong address in your pointer arithmetic.

3. try-catch

java provides try - catch - finally that is different from C++ try-catch.

Java guareentee that when the an Exception occurs, the thread will goto the end of the method before unwinding the stack to where the call was..and keep doing this till the exception is handled. This is important when working with thread. When the thread exit the method..and if the thread have the object lock..then it release the lock upon exiting the method. Java try-catch-finally guareentee the release of the lock (because Java exit the method). C++ does not guareentee this (well..i haven't work with C++ for a long time..it may have changed)..so when you throw the Exception..the lock may not be released.

4. Java is a String type language

you have two type in Java

primitive type and object type.

At runtime, Java knows the type of object, so Java knows what operating allows on th etype...this eliminate bad casting (for the most part)

you can still cast wrongly:

Person p = new Person();

Object o = p;

Cat c = (Cat) o;

compile fine, but will catch runtime exception..because Java knows the type at runtime..so trying to cast to a Cat for the Person object will generate an Exception...In C++..your application may or may not crash right there....so, you could actually keep on running and may or maynot get a runtime error (but your result may be incorrect)

5. Applet provides better security

Applet by default does not gives the Applet application permission to read or write on your computer. ActiveX (from Miscrosoft) default to allow these access.

This encapsulte the applet..and prevent malacious code.

as stated before..you can still write code that is not so "secure," it's just harder to do so, than any other language..Java try to protect developers from making these mistakes..and try to protect the end-user from malacious code.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Java is a platform-neutral language because java programs can run on more than one operating system with only one set of code. For example, if the Xbox 360 and the PlayStation 3 were both platform neutral, one disk would play a game on both the Xbox 360 and the PlayStation 3.

Java is more secure than other programming languages because of it's use of a virtual machine on the host computer. Essentially, when you run a Java program on your computer, it runs on the JVM (Java Virtual Machine.) This JVM translates the code from the java file you downloaded into native machine code specific for your computer. Therefore, the JVM can control all aspects of how the code is executed, and is able to block any security breaches before they even reach your computer. This is much more secure than running a program directly on your computer, although there is a slight performance drop due to the fact that the Virtual Machine must run along with the java program.

Yes, java is secure

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Java is said to be secure because, it is difficult to infect a java class file while compared to an executable file.

Java virtual machine performs a check before interpreting it which reduces possibility of executing infected or corrupted files to some extent.

Apart from the system programs, Java also provides a feature called an applet, which is a dynamic program used to execute on a java enabled browser. These applets are safe to download without worrying about the possibility of getting infected with malware as java limits the accessibility of the applet to use system resources.

Java's object oriented features, especially encapsulation with access protection enhances the security as the possible leakage of data or unauthorized access of data and usage of methods is not possible.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Java is known as a platform neutral language because it does not run like regular compiled application. Rather than compile to a native binary, Java instead compiles to a what is known as bit-code. The bit-code is then interpreted by a native (platform specific) application..............

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

First you should ask yourself "is it really?". Both are fairly modern languages, both are under active development; I doubt any of them is technically much superior to the other, including security.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Java by default provides encapsulation of data which ensures that data is not accessible to all. Moreover Java supports encryption which makes it more secure.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

because java is categorized into packages and packages contain classes which are not accessible directly.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is Java more secure than other languages?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why is Java known as platform neutral language and how is Java more secured than other language justify?

"Platform neutral" means that Java does not depend directly on the underlying operating system; the same binary Java classes will run on any platform that support the target version of Java that those classes use, such as Windows, Linux, and Mac OS. Java has enhanced security opposed to a native binary (e.g. a program written in C++) in the sense that an additional layer of security is implemented in the Java VM that reduces promiscuous behavior (such as accessing the hard drive when running as an applet). Java is arguably not as secure as some other languages (such as Mono/.NET, which can be statically verified safe without executing the program), but it is generally more secure than non-VM-based languages because of the extra layer of security.


Explain the statement there is more to java than the language?

All programming languages are abstract things - collections of rules which dictate how symbols may form words, how words may form statements, and how statements may form programs. Programming languages need "other stuff" in order to actually be useful. For most languages this will include either a compiler or an interpreter which can turn source code into executable programs. Java's "other stuff" includes a compiler, which turns Java source code into Java byte code, and the Java Virtual Machine (JVM), which allows Java byte code to execute on your computer.


Which computer programming languages are the standard?

The older languages are still the standards by which modern programming languages are measured. Fortran, COBOL, Lisp, and C/C++ are all used as baselines to evaluate newer languages. Of course, the "new kids" are being used as standards more and more often. Java, Ruby, Perl, Python, and other more modern languages are being used to measure how "good" a new language is.


How many programming languages are based on C?

C++, Java, Perl, Python, PHP, JavaScript, LPC, C# is the most popular languages based on C, but there is probably more languages.


Discuss features of Java Language?

# interpreted and compiled# simple # robust and secure # platform independent and portable # multithreaded and interactive# object oriented # dynamic and extensible

Related questions

Why is Java known as platform neutral language and how is Java more secured than other language justify?

"Platform neutral" means that Java does not depend directly on the underlying operating system; the same binary Java classes will run on any platform that support the target version of Java that those classes use, such as Windows, Linux, and Mac OS. Java has enhanced security opposed to a native binary (e.g. a program written in C++) in the sense that an additional layer of security is implemented in the Java VM that reduces promiscuous behavior (such as accessing the hard drive when running as an applet). Java is arguably not as secure as some other languages (such as Mono/.NET, which can be statically verified safe without executing the program), but it is generally more secure than non-VM-based languages because of the extra layer of security.


What are robotics languages?

The popular programming languages which are generally used to write a robotic program may be developed in c, c++, java etc.., these languages are more flexible when compare to the other languages.


Explain the statement there is more to java than the language?

All programming languages are abstract things - collections of rules which dictate how symbols may form words, how words may form statements, and how statements may form programs. Programming languages need "other stuff" in order to actually be useful. For most languages this will include either a compiler or an interpreter which can turn source code into executable programs. Java's "other stuff" includes a compiler, which turns Java source code into Java byte code, and the Java Virtual Machine (JVM), which allows Java byte code to execute on your computer.


What is java memory leak?

That means a memory leak in a program written in Java. A memory leak means that as the program runs, more and more memory is wasted - usually by being assigned and not de-assigned again. In Java this is not as usual as in other languages, since unused memory is normally reclaimed automatically by the garbage collector.


Which computer programming languages are the standard?

The older languages are still the standards by which modern programming languages are measured. Fortran, COBOL, Lisp, and C/C++ are all used as baselines to evaluate newer languages. Of course, the "new kids" are being used as standards more and more often. Java, Ruby, Perl, Python, and other more modern languages are being used to measure how "good" a new language is.


How many programming languages are based on C?

C++, Java, Perl, Python, PHP, JavaScript, LPC, C# is the most popular languages based on C, but there is probably more languages.


Discuss features of Java Language?

# interpreted and compiled# simple # robust and secure # platform independent and portable # multithreaded and interactive# object oriented # dynamic and extensible


What programming languages are on a computer?

There are loads of programming languages used in computer technology. Some of those are: C C++ C# Python Pearl Javascript Java Html PHP And many more. If you want to read more google for "programming languages".


What are the different languages for computer programming?

For websites: HTML JavaScript Ajax PHP, and you can embed application-making languages inside these pages: Flash or Java Other very common languages: C++ C# C Haskell Perl Python Objective-C(for Mac programming) etc. And many more...


What are the advantages of different java datatypes?

The Basic data types in Java arebyteint (Integer)longdoublefloatcharshortThe String type is an object.StringTo learn more about Java go to:[http://java.sun.com/docs/books/tutorial/java/index.html]


What is certification and the importance of certifiction of javascript?

Java Script alone has no value. It has to be used in association with various server side technologies and other languages. There are certifications available on java script but it would be more prudent to get certified in industry recognized certifications primarily on server side technologies.


Java syntax are based on which language?

Java's syntax is primarily based on the syntax of the C and C++ programming languages. James Gosling and his team, the creators of Java, aimed to make Java familiar to programmers who were already proficient in C and C++. This approach facilitated the adoption of Java among developers with prior experience in these languages. At AchieversIT, our Java training courses cover not only the syntax but also the core concepts and principles of Java programming, enabling students to become proficient Java developers.