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

Which java technology is in demand?

474


What is j2ee application model?

469


What is java j2ee developer?

461


What is declarative security ?

566


What is jta and jts?

530






Who gave the name java?

463


What is tomcat in j2ee?

474


What is iso 3166?

515


What is j2ee api?

510


Is java safe to download?

485


Is java a high level language?

488


Differentiate between .ear, .jar and .war files.

591


What is a thin client?

571


What is instance in java?

486


What is awt package in java?

503