why we r not use pointers in corejava?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pillars of java?

705


Where is core java used?

802


How to compare strings in java?

725


What is the symbol for average?

751


Implement two stacks using a single array.

818


What is the java virtual machine?

872


Which language is java?

778


Who developed java?

782


What is the Concept of Encapsulation in OOPS

777


What are the advantages and disadvantages of reference counting in garbage collection?

819


Why method overriding is used?

801


What are functions in java?

732


Is null an object in java?

811


Why is stringbuffer not immutable?

809


What do you mean by order of precedence and associativity?

753