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
What is a null class?
What is the flag in java?
What happens if an exception is throws from an object's constructor?
When should I use singleton pattern?
What is the maximum size of byte array in java?
Can we override private constructor in java?
How do you use parseint in java?
Can an interface extend a class?
Is java 1.7 the same as java 7?
What is nullpointerexception in java?
What are encapsulation, inheritance and polymorphism?
What super () does in java?
why are there separate wait and sleep methods? : Java thread
Can a class have 2 constructors?
What is the difference between stringbuffer and stringbuilder?