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 are the rules for variable declaration?
How do you compare arrays in java?
What are the difference between string, string builder, and string buffer in java?
What is passed by reference and pass by value ?
whatis Home interface and Remoteinterface? with example?
State some situations where exceptions may arise in java?
Is array a class in java?
What happens if main method is not static?
What is lexicographically smallest string?
How we can execute any code even before main method?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What is the use of put method?
Explain what do you mean by functional overloading in java?
What is difference between path and classpath in java?
Can abstract class have private constructor?