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 Class Libraries ?
Is zero a natural number?
What are invisible components?.
What is the purpose of extern variable?
Can you override static methods?
Does the order of public and static declaration matter in main method?
What does the “static” keyword mean?
What are sets in java?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
When should a function throw an exception?
What is the type of lambda expression?
What is meant by interface?
What is overriding in java?
Name four container classes.