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 Class Libraries ?

802


How do you trim a space in java?

728


What is flag in python?

819


Can we execute java program without main method?

735


What does exclamation mean in java?

775


What is the difference between super class & sub class?

806


Why java strings are immutable in nature?

784


Why is flag used in java?

759


What is the buffer limit?

767


What is preflight request?

733


Can we call the constructor of a class more than once for an object?

840


What is prefix of a string?

803


What is meant by class and object in java?

737


What is callable java?

745


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

939