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 public method modifier?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is the transient keyword?
How a variable is stored in memory?
What is the synonym of framework?
What is the use of optional ?
What is private protected in java?
What is synchronization and why is it important in java programming?
What is the use of flag?
How many types of threads are there in java?
Can a final variable be manipulated in java?
What is the concept of multithreading?
Explain creating threads by implementing runnable class?
Is multiple inheritance supported by java?
What is the integer of 16?