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


Please Help Members By Posting Answers For Below Questions

Why are variables important in research?

557


How many bytes are a float?

510


How are variables stored in memory?

580


Why is it called a string?

567


How do you define a variable?

539






Where is java located?

500


How many bits is a char?

538


Which package is always imported by default?

546


What is exception propagation?

593


What are the 6 boolean operators?

553


How do you get the length of a string in java?

522


how can you catch multiple exceptions in java?

543


How do you declare an empty string?

623


What do you mean by composition in java?

572


Is singleton set an interval?

533