why java does not contain pointers?
Answer Posted / pratiksha
pointers are dangerous and lead to memory leaks, memory
corruption, invalid memory access, e.g. from uninitialized
and improperly initialized variables, indexing out of
bounds, and many bugs due to pointer arithmetic.
References, and other features related to these, avoid all
these problems.
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is the difference between heap and stack memory?
Name few java.lang classes introduced with java 8 ?
What is the abstract class?
What methodology can be employed to locate substrings inside a string?
What language is pass by reference?
What is method reference?
Can we sort a map in java?
Is array primitive data type in java?
How can I right-justify a string?
What is a dynamic array in java?
Are floats faster than doubles?
How many threads does a core java have?
Can a class with private constructor be extended?
What is hash in java?
What is the purpose of the strictfp keyword?