Quality Testing

Quality is delighting customers

Java does not use pointers because they are unsafe and increases the complexity of the program. Since Java is known for its simplicity of code, adding the term of pointers contradicts. Because JVM is responsible for implicit memory allocation, pointers in Java are discouraged to avoid direct access to memory by the user.

Views: 106

Reply to This

Replies to This Discussion

According to software testing company, Designers of language choose not to append pointers in the language.

As you know that in software industries every software company publishes a white paper about their product or services the same as sun white paper says about The Java Language Environment:

Studies show that pointers are one of the primitive features that permit programmers to introduce bugs into the code. Given structures are gone, and as arrays or strings are objects, The need for pointers constructs these also go away. Thus, Java has no pointer data type. Any task that would require array, structure, or pointer in C can be more easily and reliably performed by declaring objects and an array of objects. Instead of complex pointer manipulation on array pointers, We can access the array by their arithmetic indices. The Java run-time environment checks the array indexing to ensure indices are within the bounds of the array.

so we no longer have dangling pointers and trashing of memory because of incorrect pointers, because there are no pointers in Java.

Most of the software testing company doesn't use pointers in Java.

By not allowing pointersJava effectively provides another level of abstraction to the programmer. No pointer support make Java more secure because they point to memory location or used for memory management that loses the security as we use them directly. 3. To make program simple, they have eliminated pointers.


TTWT Magazine





© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service