why i can not access private variable in other class?
Answer Posted / naresh
private variable are visible within it class only. the are
not visible to other class within that package or other. so
we cannot access.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
What is a java executable jar file?
Is jprofiler open source?
Which type of stream is in java?
What is data encapsulation?
How do you type the lambda symbol?
What is persistence xml in java?
What is ibatis in java?
What are jdk tools?
What is an action class in java?
Explain main thread under thread class execution?
What is serializable in java?
What is the meaning of loosely coupled in java?
What are microservices in java?
What about 'hostile applets'? : java security