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

Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?

875


Which interceptor is responsible for setting action javabean properties?

836


What does jpa mean?

903


Why do we only use the main method to start a program?

1038


What is cmp in java?

961


Do I need to install jre if I have jdk?

893


What is javabeans api?

896


What is the first argument of the string array in main method?

967


How do I install java on windows?

914


Differences between intermediate operations and terminal operations of java 8’s stream api?

1079


What is @qualifier in java?

987


What is the purpose of jdk?

923


What is stateless class in java?

955


What is meant by framework in java?

1031


What is factory pattern in java?

925