why pointer is not used in java?

Answer Posted / malligontla

The Java Language the referencing and dereferencing of
objects is handled for you automatically. Java does not
allow you to manipulate pointers or memory addresses of any
kind. It does not allow you to cast object or array
references into integers and It does not allow you to do
pointer arithmetic. It does not allow you to compute the
size in bytes of any primitive type or object. There are two
reasons for these restrictions:

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this () mean in java?

535


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

592


What does null mean in java?

619


What happens if we override private method?

518


How does arrays sort work in java?

587






Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1435


Can we make main() thread as daemon?

566


Is minecraft 1.15 out?

540


What is the += operator called?

571


What is a nonetype?

555


who can i handle multiple client in RMI

1431


How does callback work in java?

597


What is nan in java?

510


When throw keyword is used?

576


Can we override singleton class?

528