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
Why do we use j2ee?
What is java secure socket extension (jsse)?
What is actionerrors?
What is a java application server?
What is a j2ee module?
What is source file in java?
How do you make a class immutable in java?
Why java is called robust and secure?
Which edition of java is used for developing web application?
How java is used in web applications?
What is initialization parameter?
What is java naming and directory service?
What is architecture neutral in java?
What is Connector architecture?
What is jlayeredpane java?