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 happens when main () method is declared as private?

658


What are the 6 mandatory procedures for iso 9001?

535


What is the arraylist in java?

540


Is string a wrapper class?

522


Describe string intern() methodology

605






What is outofmemoryerror in java?

573


What is a dynamic array java?

526


Why can't we make a class private in java?

543


What are the new features in java 8? Explain

568


How can you say java is object oriented?

604


Why do we need wrapper classes?

584


Write the algorithm to check the number non-leaf nodes in a tree.

611


Why we do exception handling in java and how many types of exceptions are there?

557


What does yield method of the thread class do?

587


What are autoboxing and unboxing? When does it occur?

540