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 happens when main () method is declared as private?
What are the 6 mandatory procedures for iso 9001?
What is the arraylist in java?
Is string a wrapper class?
Describe string intern() methodology
What is outofmemoryerror in java?
What is a dynamic array java?
Why can't we make a class private in java?
What are the new features in java 8? Explain
How can you say java is object oriented?
Why do we need wrapper classes?
Write the algorithm to check the number non-leaf nodes in a tree.
Why we do exception handling in java and how many types of exceptions are there?
What does yield method of the thread class do?
What are autoboxing and unboxing? When does it occur?