How to access a variable if it is declared as private?
Answer Posted / neo
You can access the private variable in to the other package
or other classes by inheritance . to inherite the super
classes all the resources comes in to sub classes private
also in this context.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is ide with example?
What are "class access modifiers" in Java?
How do I compare two strings in word in java?
What is a parameter in matrices?
What is the difference between sleep and wait in java?
Does java return by reference?
What is struts in java?
Why is core java important?
why java uses class level type casting ?
What is data object example?
What is nested class?
What is an argument java?
What are conditionals and its types?
What is a buffer in java?
Give some features of interface?