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 B2B?
What is enterprise information system resource?
Define orm and its working in j2ee?
What is java developer?
What is mean by connection pooling?
What is devops in java?
What is element?
Who is java developer?
What does j2ee stand for?
What is java web technologies?
What is the latest technology used in java?
What is callback methods Component methods called by the container to notify the component of important events in its life cycle?
What is java actionlistener?
What is a component in java?
What are the components of j2ee applications?