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 the use of default method in interface in java? Explain
What is a parameter in matrices?
How do you convert bytes to character in java?
What java ide should I use?
How do you format in java?
How would you format a date in java? I.e. In the ddmmyyy format?
What is a null check?
Can we define static methods inside interface?
What happens to the Exception object after handling an exception?
How do you remove duplicates in java?
What are the ways in which a thread can enter the waiting state?
How many types of keywords are there?
Why is string buffer better than string ?
Can a static class have a constructor java?
What is the length of a string?