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 most important feature of java?
What is transient in java?
What is a java executable jar file?
What is gui in java with examples?
What is rxjava2?
How do I install java re?
Why is class forname used in java?
Are there tuples in java?
What is an interceptor in java?
1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?
Why do we need new date and time api in java se 8?
What is profile in java?
Which version of jdk is required for netbeans 8.0 2?
What is lambda expression in mvc?
What is map and flatmap?