why pointer is not used in java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / arun
Java is the language best known for its security
features.Programmer cannot find the physical address of any
variable or object at any case in java and prevents the
programmer or user from accessing the physical address.Hence
if java provide the advantage(disadvantage) of using
pointers in programs there is chance of getting lot of
security flaw, so java does not support pointers.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / cmadhu2008
Java language have pointer but controlled by itself not to
do any thing by programmer,if it was be available then
security will be break that's why
| Is This Answer Correct ? | 10 Yes | 2 No |
Howmany address lines are required to addressing 1 MB memory?
8 Answers Beatroot Technologies, CSC, HCL, Hexaware, IBM,
when to use abstract class and when to use interface?
16 Answers Exterro, iGate, IonIdea,
________ exception must be either caught or specified in throws class of the method.
What is run-time class and system class? what is their purpose?
what is difference between requestprocessor and request dispatcher?
Explain wait() method of object class ?
wahts is mean by thread?
22 Answers HCL, TCS,
How does a cookie work in Servlets?
How can we run a java program without making any object?
Can we declare register variable as global?
How to make a class immutable?
What is nan in java?