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 crud operations in java?
What is a bean class?
What is java api?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
What do you understand by a variable?
Write a class which checks whether a given number is prime or not. Write another class to implement the behavior of previous class and print the series of twin prime number upto a given range.
What is meant by framework in java?
How do I open the java control panel?
Where is java installed?
What is the difference between lambdas and delegates?
explain isalive() method under thread class?
What is gui in java with examples?
What is predicate in lambda expression?
what are the different phases in delivering the project during development and maintenance?
Why is class forname used in java?