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 / srinu

private variable are visible in the with in class only.This
are not accessble to other class with in same package or
other diiferent package .so we can't access the private
variable out side of classes

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is jvm a compiler or an interpreter?

964


when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution

1806


Which is best framework in java?

875


what are the different phases in delivering the project during development and maintenance?

4563


What is java flatmap?

846


Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

829


What is a dao layer in java?

826


What if I write static public void instead of public static void?

820


What is war file in java?

924


What is the use of flatmap?

916


What is reflection in java?

880


What are jdk tools?

841


What is jsr in java?

859


Please can anybody explain what exactly "the project architecture" means???

2150


Why is lambda expression used?

829