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?
Is eclipse written in java?
What is a thin client?
you are to choose between two procedures,both of which copute the minimum value in an array of integers.one procedure returns the smallest integer if its array argument is empty. the other requires a nonempty array.which procedure should you choose and why?
What is component-managed sign-on ?
What is server in j2ee?
What is context root?
What is container-managed transaction?
What is use of final keyword in java?
What are the advanced technologies in java?
Why frameworks are used in java?
I’m new to WebLogic Does anyone knows how to Deploy Application using
I Want build and release interview questions
Why java is interpreted language?
What is archiving?