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 the J2EE module?
What are the java backend technologies?
Explain connector architecture.
What do you understand by a thin client?
What is java netbeans?
What is the difference between java and j2ee?
What is element?
What is deployment descriptor?
What is a j2ee module?
How to invoke stored procedure in hibernate?
On which platform j2ee is based?
What are defined as web components?
i want test pattern of zylog company and some examples also
What is authorization constraint?
Define the struts in the j2ee framework?