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...

There are 2 classes . Class A and Class B. In Class A i declared
a variable in private. if we can access this private variable in
Class B. If yes means , how we can access ?

Answer Posted / anant

The variable declared in class a should be directed available
in inner class because.
Getter and setter is also another way.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is context attribute?

981


What is j2ee product?

882


How to create object without using the keyword “new” in java?

1022


What is single tier architecture in java?

899


What is the latest framework in java?

916


What are the most important topics in java?

946


What is j2ee component?

1046


What do you understand by j2ee?

942


Is j2ee and jee same?

921


How is java development environment setup?

893


What are the advantages of object-relational mapping (orm)?

861


What is webservices in java?

911


Why do we use j2ee?

889


What is DDP?

939


Why java is called robust and secure?

981