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 / sree
if the variable is private.Declare setter and getters to
the variable and access the varible using the setter and
getters in the other class
Is This Answer Correct ? | 34 Yes | 1 No |
Post New Answer View All Answers
What is java transaction service (jts)?
What is the description for expression element?
What is java advanced?
Why java is interpreted language?
Which edition of java is used for web application?
What is the build file?
How do you run a java program?
Are java primitives objects?
What is j2ee application model?
Define hashtable in j2ee?
What is event in java?
I’m new to WebLogic Does anyone knows how to Deploy Application using
Why tomcat is used in java?
What is javaserver pages standard tag library (jstl)?
What is asant?