How to access a variable if it is declared as private?
Answer Posted / ravikiran(aptech mumbai)
the variable declared as private can be accessed with in the
same class only
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Differentiate between array list and vector in java.
Does java have a compiler?
What will be the output of round(3.7) and ceil(3.7)?
what is aggregation in java?
Can you run java program without main method?
What is the intersection and union methods?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What does 0 mean in boolean?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Why do we use variables?
What is io stream in java?
What is meant by polymorphism?
What is the basic of java?
What is nested loop? What is dangling else condition in it?
What are static variables and functions?