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 |
i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.
Can we create an object of static class in java?
What is type casting?
when to use ArrayList and when to use HashMap in webApplication.
What are Encapsulation, Polymorphism and Inheritance?
How does marker interface provides functionality to the implemented class ? or How dose maker interface gets the functionalities as serialization or cloning.
What is void class in java?
What is a final class in java?
Enlist few advantages of inheritance?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
0 Answers Akamai Technologies,
What is initial size of arraylist in java?
What is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,