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 j2ee specification?

493


What is the preferred size of a component in java?

454


What is entity reference?

508


What do you mean by the component contract?

516


Is java safe to download?

493






How to invoke stored procedure in hibernate?

494


How does event listener work in java?

476


What is 2 stands for in j2ee?

522


What is the J2EE module?

615


What is java 2 platform, micro edition (j2me)?

519


Is j2ee a framework?

486


What is a java application client?

529


What is java gui?

503


What is container-managed sign-on?

550


What is sandbox in java?

504