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

By what default value is an object reference declared as an instance variable?

1 Answers   Wipro,


What do you mean by constructor?

0 Answers  


is it possible to add a object in a HASHMAP

6 Answers   HCL,


What is lambda programming?

0 Answers  


What is the meaning of find and replace?

0 Answers  






When will you define a method as static in Java?

0 Answers   SwanSoft Technologies,


What is the difference between yielding and sleeping?

0 Answers  


What is the abstract class?

0 Answers  


java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


Does constructor be static?

0 Answers  


Is null a string in java?

0 Answers  


Explain the difference between string, stringbuffer and stringbuilder in java?

0 Answers  


Categories