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
What is j2ee specification?
What is the preferred size of a component in java?
What is entity reference?
What do you mean by the component contract?
Is java safe to download?
How to invoke stored procedure in hibernate?
How does event listener work in java?
What is 2 stands for in j2ee?
What is the J2EE module?
What is java 2 platform, micro edition (j2me)?
Is j2ee a framework?
What is a java application client?
What is java gui?
What is container-managed sign-on?
What is sandbox in java?