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 are the main components of the j2ee application?

643


What is filter chain?

683


What is ear file?

688


What is business method?

700


What are the components of j2ee applications?

751






What is application client container?

681


How will you explain load() and get() methods?

686


Which java ide is best?

673


What is button in java?

658


What software is needed for java programming?

605


What is java web technologies?

662


What is credentials?

658


What is the ear file?

688


What is containers in java?

609


What are the j2ee client types?

674