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 / sudhakar
private variables are not accessible by the subclasses, either the class B should be the inner class of class A or we have to go through the java reflection api.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is ejb container provider?
What is j2ee specification?
how to run servlet program between two computer through internet ?
What is difference between javac and java?
What is B2B?
What is Document Object Model?
What are the main components of the j2ee application?
Is j2ee a framework?
What is j2ee technology?
Is java safe to download?
What is wildfly java?
What is java listener?
What is 'applet container' ?
What is ejb jar file?
What is tomcat in j2ee?