Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 a null class?

985


What is the flag in java?

1066


What happens if an exception is throws from an object's constructor?

1133


When should I use singleton pattern?

1033


What is the maximum size of byte array in java?

1013


Can we override private constructor in java?

981


How do you use parseint in java?

985


Can an interface extend a class?

996


Is java 1.7 the same as java 7?

1051


What is nullpointerexception in java?

1161


What are encapsulation, inheritance and polymorphism?

1015


What super () does in java?

913


why are there separate wait and sleep methods? : Java thread

1029


Can a class have 2 constructors?

900


What is the difference between stringbuffer and stringbuilder?

1063