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 are the Class Libraries ?

998


Is zero a natural number?

971


What are invisible components?.

2082


What is the purpose of extern variable?

962


Can you override static methods?

897


Does the order of public and static declaration matter in main method?

1028


What does the “static” keyword mean?

1044


What are sets in java?

887


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1072


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

980


When should a function throw an exception?

990


What is the type of lambda expression?

946


What is meant by interface?

1010


What is overriding in java?

986


Name four container classes.

928