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 the difference between a jvm and a jdk?
What is the difference between Logical Parallelism and Physical Parallelism?
Which version of jdk is required for netbeans 8.0 2?
What are java’s rules regarding tabs, spaces and newline characters?
What is a bean class?
Can optional be null?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
What is an api in java?
What is a context in java?
How do you create a jar file?
Define network programming?
Why are lambda functions called lambda?
What is the difference between jar and executable jar?
What is java lang exceptionininitializererror?
What is the use of entity class in java?