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

What is the difference between a jvm and a jdk?

1056


What is the difference between Logical Parallelism and Physical Parallelism?

3448


Which version of jdk is required for netbeans 8.0 2?

919


What are java’s rules regarding tabs, spaces and newline characters?

1513


What is a bean class?

936


Can optional be null?

1042


When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?

1023


What is an api in java?

1128


What is a context in java?

913


How do you create a jar file?

983


Define network programming?

1210


Why are lambda functions called lambda?

998


What is the difference between jar and executable jar?

1058


What is java lang exceptionininitializererror?

968


What is the use of entity class in java?

978