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
Is java gui dead?
What is comment?
Explain the four types of container that the j2ee specification defines
What are the advantages of object-relational mapping (orm)?
What do you understand by business logic?
What is data?
Are java primitives objects?
What is container-managed sign-on?
what is direct link to download swing ebook,applet,ejb,core java
What are the types of j2ee clients?
What are the different types of events in java?
Describe the file types *.ear, * .jar and *.war?
Is java important for my computer?
What do you mean by the deployment descriptor?
What are the modules of j2ee?