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

private variables are not accessible by the subclasses, either the class B should be the inner class of class A or we have to go through the java reflection api.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java gui dead?

845


What is comment?

864


Explain the four types of container that the j2ee specification defines

872


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

825


What do you understand by business logic?

853


What is data?

899


Are java primitives objects?

870


What is container-managed sign-on?

927


what is direct link to download swing ebook,applet,ejb,core java

2533


What are the types of j2ee clients?

904


What are the different types of events in java?

803


Describe the file types *.ear, * .jar and *.war?

928


Is java important for my computer?

832


What do you mean by the deployment descriptor?

937


What are the modules of j2ee?

863