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
Where to store local variables?
Which is faster string or stringbuilder?
What is method overriding in java ?
What are the pillars of java?
In which language java is written?
What is java in detail?
How does varargs work in java?
What is stack example?
How can you read content from file in java?
What is the purpose of skeleton and stub?
What are the 4 versions of java?
What invokes a thread's run() method in java programming?
What is continuity of a function?
What is a ternary operator in java? What is an interface?
How do generics work?