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 a data structure java?
Can inner class have constructor?
What is anonymous inner class?
What do you understand by classes in java?
What are the changes in java.io in java 8 ?
How can you handle java exceptions?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is equlas() and hashcode() contract in java? Where does it used?
How to perform merge sort in java?
What do you mean by data type?
Can you write a java class that could be used both as an applet as well as an application?
How do you reverse sort in java?
What do you understand by final value?
Can I learn java without any programming experience?
How do you create a reference in java?