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 i can not access private variable in other class?

Answer Posted / naresh

private variable are visible within it class only. the are
not visible to other class within that package or other. so
we cannot access.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the common use of ejb?

1155


Explain issues of old java date api?

1058


Is php faster than java?

935


What is http session in java?

1067


Explain main thread under thread class execution?

956


differences between iterator and spliterator in java se 8?

992


What is meant by pass by reference and pass by value in java?

976


What is static class in java?

1134


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

962


What is jpa entitymanager?

1008


How can I swap two variables without using a third variable?

1029


What is the difference between swing and awt components?

1159


Do I really have to type in the programs in the book to try them out?

1060


What is java ioc?

928


What is resultsetmetadata in java?

943