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: 48

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.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service