Computer Science, asked by kushi2073, 1 year ago

how java is more secure than other language​

Answers

Answered by TheMist
56

Answer:

Java is more secure because of following reasons:-

No use of pointer :-

Java do not use the pointers like other languages c,c++.(pointers are variables which holds the memory addresses).These pointers leads to unauthorized access to the memory blocks if some other program get the pointer values,and can change and manipulate the data stored in the systems RAM.But java does not use the pointers,it has its internal mechanism to manage the memory management .Java give the access to the data to the programs which has proper verified authorization.

Concept of error handling and exception handling :-

Java provide the exception handling concept which capture series errors and eliminates any risk of crashing the system.Java compiler check all the code lines and check that if there is any line of code that may create error and give warnings to the programmer like "deprecated methods and classes",so that the more effective program can be written by doing changes in the program .It checks the at the time of execution and may create the exception ArrayIndexOutOfBoundExceptionso that these exceptions can be handled without program crash ,and unauthorised memory contents are not accessible and modifiable by any other programs.

Strict Data Type Checking:-

Java compiler strictly check the data type that is defined to the variables in the program ,so that there unboxing and unboxing operations can not lead to security issues.Java provide wrapper classes to use in place of primitive data types like Integer class to use instead of int data type ,there are many more.

Garbage Collector:-Java has its internal garbage collector that automatically deallocate the variables and objects that go out of scope ,so that the and security issue may lead ,and it also effective to put the memory management task in the hand of Garbage Collector ,because the programmer may do mistake in programming logic(like left destruction of objects and pointers) that may lead to loophole in the security of program.But java is secure in this case.

Please mark it as Brainliest....,

Answered by Anshu33845
1

Answer:

Java is a very secured programming language so it is used in banks. As we know that, when a user compiles the Java program, the Java compiler creates a class file with bytecode and as we know that bytecode is a thing which makes Java programming language more secure, which are tested by the JVM at the time of program execution for viruses and other malicious files.

Similar questions