why i can not access private variable in other class?
Answer Posted / srinu
private variable are visible in the with in class only.This
are not accessble to other class with in same package or
other diiferent package .so we can't access the private
variable out side of classes
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is map and flatmap?
Is jdk an ide?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))
Where are group policies stored? : java security
explain isalive() method under thread class?
What is difference between loosely coupled and tightly coupled in java?
What is the difference between the boolean & operator and the && operator?
What can open a jar file?
What is a flatmap?
What gives java it’s “write once and run anywhere” nature?
What is transaction management in java?
What is a container in java?
What is the meaning of loosely coupled in java?
In which language eclipse is developed?
What is the use of flatmap in java 8?