why we r not use pointers in corejava?

Answers were Sorted based on User's Feedback



why we r not use pointers in corejava?..

Answer / arun

First you need to understand the concept of Pointer.
Pointer in C++, gives as reference to object from outside.
if we provide same thing in java, the concept of
Encapsulation will be violate. so java doesn't provide this
feature till 6.0 version. Recently Java added this feature
in java7.0. but they gave different name Clouser, which
give you pointer to function, as Callback in C...

Is This Answer Correct ?    15 Yes 5 No

why we r not use pointers in corejava?..

Answer / javac

Internally java is based on pointers only.Sun People have
implemented the java utilites using pointer concepts but
they have restricted the developers to use the pointers.so
we cannot use pointers in java.

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More Core Java Interview Questions

What is map and hashmap in java?

0 Answers  


What do you mean by an interface in java?

0 Answers  


What are parent methods and how can you call them?

2 Answers  


If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


What is byte data type?

0 Answers  


Can an unreachable object become reachable again?

3 Answers   DELL,


How can we make string upper case or lower case?

0 Answers  


Explain the difference between jdk, jre, and jvm?

0 Answers  


What are the object and class classes used for?

0 Answers  


for(i=0;i<100;i++) { int i=method();//method returns no's from 1 to 10; /* insert some stmts which can give output like no.of times numbers(1-10) returned. (for example if it returns 2 then i want output how many times 2 returned) like that i want output for no's 1 - 10 how many times each no returned. */ }

3 Answers  


Is null keyword in java?

0 Answers  


What do you know about java?

0 Answers  


Categories