Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

why pointer is not used in java?

Answers were Sorted based on User's Feedback

why pointer is not used in java?..

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

why pointer is not used in java?..

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

why pointer is not used in java?..

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

Post New Answer

More Core Java Interview Questions

Can you make a constructor final?

0 Answers  

Is 'null' a keyword?

8 Answers  

What problems will occur when you don?t use layout managers?

1 Answers  

How do you sort a list in java?

0 Answers  

Define immutable object?

0 Answers  

How do you do math powers in java?

0 Answers  

Why does java not support pointers?

0 Answers  

public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }

7 Answers   iGate,

What are jee technologies?

0 Answers  

Explain the use of sublass in a java program?

0 Answers  

Java is pass by value or pass by reference? Explain

0 Answers  

What is the difference between notify and notifyall method?

0 Answers