why we r not use pointers in corejava?

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


Please Help Members By Posting Answers For Below Questions

What is composition in java?

902


Explain garbage collection in java?

709


How does queue work in java?

689


How static variable work in java?

781


What class of exceptions are generated by the java run-time system?

840






What is the use of parse function in java?

668


How do you override a method in java?

703


What is thread pool in java with example?

707


Can I learn java without any programming experience?

746


How do you add an element to a set in java?

722


What is use of super keyword?

724


what is object slice?

1738


What are class members by default?

818


What is the difference between static binding and dynamic binding?

755


Is java good for beginners?

735