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 composition in java?
Explain garbage collection in java?
How does queue work in java?
How static variable work in java?
What class of exceptions are generated by the java run-time system?
What is the use of parse function in java?
How do you override a method in java?
What is thread pool in java with example?
Can I learn java without any programming experience?
How do you add an element to a set in java?
What is use of super keyword?
what is object slice?
What are class members by default?
What is the difference between static binding and dynamic binding?
Is java good for beginners?