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
How do you add an element to a set in java?
What is an array in java?
What are invisible components?.
How do you use nextline in java?
What is the difference between == and === javascript?
What does the string method compareto () do?
Difference between final and effectively final ?
What access modifiers can be used for methods?
Explain the difference between a Thread and a Process.
What is singleton pattern?
What is meant by JVM? Is JVM platform independent or not?
Is final static java?
What is floating data type?
When object is created and destroyed?
What is the different types of functions?