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

Is java ee and j2ee same?

507


What is jaap?

557


What does java awt stand for?

526


What is the description for expression element?

529


Is downloading java safe?

481






What is the use of jit compiler in java?

487


What do you understand by j2ee?

491


What is difference between j2ee and java?

505


Which is latest technology in java?

494


What is j2ee server?

560


Is eclipse written in java?

549


I’m new to WebLogic Does anyone knows how to Deploy Application using

1759


What is callback methods Component methods called by the container to notify the component of important events in its life cycle?

539


What is java listener?

508


What is java api for xml processing (jaxp)?

560